다음 코드에서 LLVM 명령어의 피연산자를 대체하려고합니다. 그러나 그것은 작동하지 않으며 아무 것도 변경되지 않습니다. 어떤 생각이 어떻게 해결할 수 있습니까?LLVM 명령어의 피연산자 바꾸기
for (OI = insn->op_begin(), OE = insn->op_end(); OI != OE; ++OI)
{
Value *val = *OI;
iter = mapClonedAndOrg.find(val);
if(iter != mapClonedAndOrg.end())
{
// Here I try to replace the operand, to no effect!
val = (Value*)iter->second.PN;
}
}
C ** exclusive 또는 ** C++? –