[LLVMdev] error: terminator in the middle of basic block

unni_c at csa.iisc.ernet.in unni_c at csa.iisc.ernet.in
Fri Nov 9 21:45:36 PST 2012


Hello,
I modified the PathProfiling.cpp and run opt -inesrt-path-profiling. it
works correctly ,but after path-profile is complete in
Verifier::visitTerminatorInst it prints  "Terminator found in the middle
of a basic block!" .
error is I added two basic blocks after return basic block and return has
br label %newprint when printed in pathprofile module

but in Verifier::visitTerminatorInst
I=br label %newprint and I.getParent()->getTerminator= <null>

when I printed pathprofile mode return had terminator br label %newprint.

what is the reason?

unnikrishnan c



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the llvm-dev mailing list