Re: [llvm-commits] Handle global variables in eh_selector lowering

2007-04-26 Thread Chris Lattner
On Apr 14, 2007, at 8:34 AM, Duncan Sands wrote: The eh_selector intrinsic wants global variables for its extra arguments, but wasn't expecting to get... global variables! Only bitcasts of global variables. Discovered by the Ada f-e, fix attached. Maybe it can be done more neatly, but I

[llvm-commits] Handle global variables in eh_selector lowering

2007-04-14 Thread Duncan Sands
The eh_selector intrinsic wants global variables for its extra arguments, but wasn't expecting to get... global variables! Only bitcasts of global variables. Discovered by the Ada f-e, fix attached. Maybe it can be done more neatly, but I don't know LLVM well enough to say. Ciao, Duncan.

Re: [llvm-commits] Handle global variables in eh_selector lowering

2007-04-14 Thread Duncan Sands
How about this instead? Duncan. Index: llvm.master/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp === --- llvm.master.orig/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 2007-04-14 17:37:08.0 +0200 +++