Skip to content

Commit e8ba793

Browse files
xelzmmPatriceBlin
authored andcommitted
bogus: fix debug info metadata clone bug
Upstream-Status: Pending merge request This patch will probably never be upstreamed. see: obfuscator-llvm/obfuscator#76
1 parent c010491 commit e8ba793

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bogus/BogusControlFlow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ BasicBlock *BogusControlFlow::createAlteredBasicBlock(BasicBlock *basicBlock,
368368
for (User::op_iterator opi = i->op_begin(), ope = i->op_end(); opi != ope;
369369
++opi) {
370370
// get the value for the operand
371-
Value *v = MapValue(*opi, VMap, RF_None, 0);
371+
Value *v = MapValue(*opi, VMap, RF_NoModuleLevelChanges, 0);
372372
if (v != 0) {
373373
*opi = v;
374374
DEBUG_WITH_TYPE("gen", errs()

0 commit comments

Comments
 (0)