We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9173c commit dfe18c0Copy full SHA for dfe18c0
llvm/lib/Frontend/HLSL/HLSLRootSignature.cpp
@@ -170,6 +170,12 @@ MDNode *MetadataBuilder::BuildRootSignature() {
170
ElementMD = BuildDescriptorTableClause(*Clause);
171
if (const auto &Table = std::get_if<DescriptorTable>(&Element))
172
ElementMD = BuildDescriptorTable(*Table);
173
+
174
+ // FIXME(#126586): remove once all RootElemnt variants are handled in a
175
+ // visit or otherwise
176
+ assert(ElementMD != nullptr &&
177
+ "Constructed an unhandled root element type.");
178
179
GeneratedMetadata.push_back(ElementMD);
180
}
181
0 commit comments