Skip to content

Commit 868baf0

Browse files
bokrzesiigcbot
authored andcommitted
[LLVM16] [LITS] Fix regression in LLVM wrapper
Porting IGC code to LLVM16 * IGCLLVM::splice operation was incorrectly implemented in the LLVM wrapper and caused Function building blocks lose
1 parent 45e95a1 commit 868baf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/WrapperLLVM/include/llvmWrapper/IR/Function.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ inline void splice(llvm::Function* pNewFunc, llvm::Function::iterator it, llvm::
6060
#if LLVM_VERSION_MAJOR < 16
6161
pNewFunc->getBasicBlockList().splice(it, pOldFunc->getBasicBlockList(), BB);
6262
#else
63-
pNewFunc->splice(it, pOldFunc);
63+
pNewFunc->splice(it, pOldFunc, BB->getIterator());
6464
#endif
6565
}
6666

0 commit comments

Comments
 (0)