Skip to content

Commit 2579ffc

Browse files
committed
[HLSL] MetadataParser::parseRootDescriptors - fix gcc Wparentheses warning. NFC.
1 parent b983ce8 commit 2579ffc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Frontend/HLSL/RootSignatureMetadata.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ Error MetadataParser::parseRootConstants(mcdxbc::RootSignatureDesc &RSD,
270270
Error MetadataParser::parseRootDescriptors(
271271
mcdxbc::RootSignatureDesc &RSD, MDNode *RootDescriptorNode,
272272
RootSignatureElementKind ElementKind) {
273-
assert(ElementKind == RootSignatureElementKind::SRV ||
274-
ElementKind == RootSignatureElementKind::UAV ||
275-
ElementKind == RootSignatureElementKind::CBV &&
276-
"parseRootDescriptors should only be called with RootDescriptor "
277-
"element kind.");
273+
assert((ElementKind == RootSignatureElementKind::SRV ||
274+
ElementKind == RootSignatureElementKind::UAV ||
275+
ElementKind == RootSignatureElementKind::CBV) &&
276+
"parseRootDescriptors should only be called with RootDescriptor "
277+
"element kind.");
278278
if (RootDescriptorNode->getNumOperands() != 5)
279279
return make_error<InvalidRSMetadataFormat>("Root Descriptor Element");
280280

0 commit comments

Comments
 (0)