You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In obfuscator/lib/Transforms/Obfuscation/BogusControlFlow.cpp:
// Split the block: first part with only the phi nodes and debug info and terminator
// created by splitBasicBlock. (-> No instruction)
// Second part with every instructions from the original block
// We do this way, so we don't have to adjust all the phi nodes, metadatas and so on
// for the first block. We have to let the phi nodes in the first part, because they
// actually are updated in the second part according to them.
BasicBlock::iterator i1 = basicBlock->begin();
if(basicBlock->getFirstNonPHIOrDbgOrLifetime())
i1 = (BasicBlock::iterator)basicBlock->getFirstNonPHIOrDbgOrLifetime();
It really confuse me.
As far as I know, there is no constraint that a basic block can only have one phi node.
So we still have to adjust the phi nodes in the second part, or can we let all the phi nodes in the first part?
The text was updated successfully, but these errors were encountered:
In obfuscator/lib/Transforms/Obfuscation/BogusControlFlow.cpp:
// Split the block: first part with only the phi nodes and debug info and terminator
// created by splitBasicBlock. (-> No instruction)
// Second part with every instructions from the original block
// We do this way, so we don't have to adjust all the phi nodes, metadatas and so on
// for the first block. We have to let the phi nodes in the first part, because they
// actually are updated in the second part according to them.
BasicBlock::iterator i1 = basicBlock->begin();
if(basicBlock->getFirstNonPHIOrDbgOrLifetime())
i1 = (BasicBlock::iterator)basicBlock->getFirstNonPHIOrDbgOrLifetime();
It really confuse me.
As far as I know, there is no constraint that a basic block can only have one phi node.
So we still have to adjust the phi nodes in the second part, or can we let all the phi nodes in the first part?
In obfuscator/lib/Transforms/Obfuscation/BogusControlFlow.cpp:
It really confuse me.
As far as I know, there is no constraint that a basic block can only have one phi node.
So we still have to adjust the phi nodes in the second part, or can we let all the phi nodes in the first part?
The text was updated successfully, but these errors were encountered: