[LLVMdev] "Not all catch info was assigned to a landing pad!"' failed

Kostya Serebryany kcc at google.com
Tue May 17 07:09:51 PDT 2011


Hi,

My transformation phase inserts an if-the-else construct into a BB.
If that BB contains llvm.eh.exception, I get an Assertion at some later
point:

lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp:212:
void llvm::FunctionLoweringInfo::clear(): Assertion `CatchInfoFound.size()
== CatchInfoLost.size() && "Not all catch info was assigned to a  landing
pad!"' failed.

Is there some rule that forbids splitting BBs with EH?
Or maybe something special needs to be done when splitting such BB?

The code is here:
http://code.google.com/p/address-sanitizer/source/browse/trunk/llvm/AddressSanitizer.cpp
,
see splitBlockAndInsertIfThen

Thanks,

--kcc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110517/0e107689/attachment.html>


More information about the llvm-dev mailing list