search for: testinstvisitor

Displaying 1 result from an estimated 1 matches for "testinstvisitor".

2014 Jul 07
4
[LLVMdev] Splitting basic block results in unknown instruction type assertion
...after splitting a basic block. Here is a method to reproduce the issue: // -------------------- Test.cpp #include "llvm/IR/Module.h" #include "llvm/Pass.h" #include "llvm/InstVisitor.h" using namespace llvm; namespace { class TestInstVisitor : public InstVisitor<TestInstVisitor> { public: void visitCallInst(CallInst &I) { Instruction *splitPoint = I.getNextNode(); BasicBlock *head = splitPoint->getParent(); BasicBlock *tail = head->splitBasicBlock(splitPoint); }...