Skip to content

Commit 0a92537

Browse files
committed
fix(bcf): Issue that 'getBasicBlockList' is a private member of 'llvm::Function'
1 parent 8a6f79a commit 0a92537

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm-project/llvm/lib/Passes/Obfuscation/IPObfuscationContext.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ namespace llvm
229229
Call->eraseFromParent();
230230
}
231231

232-
NF->getBasicBlockList().splice(NF->begin(), F->getBasicBlockList());
232+
// NF->getBasicBlockList().splice(NF->begin(), F->getBasicBlockList());
233+
NF->splice(NF->begin(), F); // Fix 'getBasicBlockList' is a private member of 'llvm::Function'
233234

234235
// Loop over the argument list, transferring uses of the old arguments over to
235236
// the new arguments, also transferring over the names as well.

0 commit comments

Comments
 (0)