Skip to content

Commit 0e5355d

Browse files
committed
Remove use of deprecated function.
1 parent 75405bc commit 0e5355d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVCBufferAccess.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static bool replaceCBufferAccesses(Module &M) {
111111

112112
for (Instruction *I : Insts) {
113113
Instruction *NewInst = CE->getAsInstruction();
114-
NewInst->insertBefore(I);
114+
NewInst->insertBefore(I->getIterator());
115115
I->replaceUsesOfWith(CE, NewInst);
116116
NewInst->replaceUsesOfWith(MemberGV, GetPointerCall);
117117
}

0 commit comments

Comments
 (0)