Hi, <div><br></div><div>My transformation phase inserts an if-the-else construct into a BB.</div><div>If that BB contains llvm.eh.exception, I get an Assertion at some later point:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div><div>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.         </div>
</div><div><br></div><div>Is there some rule that forbids splitting BBs with EH? </div><div>Or maybe something special needs to be done when splitting such BB? </div><div><br></div><div>The code is here: <a href="http://code.google.com/p/address-sanitizer/source/browse/trunk/llvm/AddressSanitizer.cpp">http://code.google.com/p/address-sanitizer/source/browse/trunk/llvm/AddressSanitizer.cpp</a> , see splitBlockAndInsertIfThen</div>
<div><br></div><div>Thanks, </div><div><br></div><div>--kcc </div><meta http-equiv="content-type" content="text/html; charset=utf-8">