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 b0d0180 commit 3c6894fCopy full SHA for 3c6894f
llvm/lib/Target/DirectX/DXILRootSignature.cpp
@@ -150,11 +150,16 @@ analyzeModule(Module &M) {
150
continue;
151
}
152
153
- MDNode *RootElementListNode =
154
- dyn_cast<MDNode>(RSDefNode->getOperand(1).get());
+ Metadata *RootElementListOperand = RSDefNode->getOperand(1).get();
155
+ if (RootElementListOperand == nullptr) {
156
+ reportError(Ctx, "Root Element mdnode is null.");
157
+ continue;
158
+ }
159
+
160
+ MDNode *RootElementListNode = dyn_cast<MDNode>(RootElementListOperand);
161
if (RootElementListNode == nullptr) {
- reportError(Ctx, "Missing Root Element List Metadata node.");
162
+ reportError(Ctx, "Root Element is not a metadata node.");
163
164
165
0 commit comments