Skip to content

Commit

Permalink
bogus: fix debug info metadata clone bug
Browse files Browse the repository at this point in the history
Upstream-Status: Pending merge request
This patch will probably never be upstreamed.

see: obfuscator-llvm/obfuscator#76
  • Loading branch information
xelzmm authored and PatriceBlin committed May 2, 2022
1 parent c010491 commit e8ba793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bogus/BogusControlFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ BasicBlock *BogusControlFlow::createAlteredBasicBlock(BasicBlock *basicBlock,
for (User::op_iterator opi = i->op_begin(), ope = i->op_end(); opi != ope;
++opi) {
// get the value for the operand
Value *v = MapValue(*opi, VMap, RF_None, 0);
Value *v = MapValue(*opi, VMap, RF_NoModuleLevelChanges, 0);
if (v != 0) {
*opi = v;
DEBUG_WITH_TYPE("gen", errs()
Expand Down

0 comments on commit e8ba793

Please sign in to comment.