Displaying 1 result from an estimated 1 matches for "qv_segfault".
2011 Oct 12
2
[LLVMdev] insert ICmpInst/BranchIns in Pass?
...*i);
bb->getTerminator()->eraseFromParent();
/* Test */
ICmpInst *test = new ICmpInst(*bb, CmpInst::ICMP_NE, shadow, val,
"Shadow check");
/* Fail */
BasicBlock *trueBlock = BasicBlock::Create(M.getContext(), "Shadow
Check FAIL", &F);
CallInst::Create(qv_segFault, "", trueBlock);
BranchInst::Create(bb_after, trueBlock);
/* Profit */
BranchInst::Create(trueBlock, bb_after, test, bb);
}