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 75405bc commit 0e5355dCopy full SHA for 0e5355d
llvm/lib/Target/SPIRV/SPIRVCBufferAccess.cpp
@@ -111,7 +111,7 @@ static bool replaceCBufferAccesses(Module &M) {
111
112
for (Instruction *I : Insts) {
113
Instruction *NewInst = CE->getAsInstruction();
114
- NewInst->insertBefore(I);
+ NewInst->insertBefore(I->getIterator());
115
I->replaceUsesOfWith(CE, NewInst);
116
NewInst->replaceUsesOfWith(MemberGV, GetPointerCall);
117
}
0 commit comments