[llvm-commits] Handle constant folded bitcasts in eh lowering

Duncan Sands baldrick at free.fr
Thu May 3 11:39:13 PDT 2007


The eh_selector, eh_filter and eh_typeid_for intrinsics take
arguments that should be a global variable or a bitcast of a
global variable.  A bitcast of a global variable can be constant
folded to a GEP in some cases, causing the current code to assert.
The attached patch fixes this.

Best wishes,

Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eh_typeid.diff
Type: text/x-diff
Size: 3558 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070503/3bbe9c75/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testcase.diff
Type: text/x-diff
Size: 717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070503/3bbe9c75/attachment-0001.diff>


More information about the llvm-commits mailing list