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 b562bf1 commit 846a9fbCopy full SHA for 846a9fb
llvm/lib/Target/SPIRV/SPIRVCBufferAccess.cpp
@@ -59,7 +59,10 @@ static bool replaceCBufferAccesses(Module &M) {
59
60
for (const hlsl::CBufferMapping &Mapping : *CBufMD) {
61
Instruction *HandleDef = findHandleDef(Mapping.Handle);
62
- // TODO: Issue error if HandleDef is nullptr.
+ if (!HandleDef) {
63
+ report_fatal_error("Could not find handle definition for cbuffer: " +
64
+ Mapping.Handle->getName());
65
+ }
66
67
// The handle definition should dominate all uses of the cbuffer members.
68
// We'll insert our getpointer calls right after it.
0 commit comments