diff options
author | Duncan Sands <baldrick@free.fr> | 2007-07-06 14:46:23 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-07-06 14:46:23 +0000 |
commit | 9d97420473c99e761fcea0280cfa85a38ff6d6d9 (patch) | |
tree | 82993790aa599bbc6597f9ebb7429de3fe9c9dd4 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 71ed4aaa3178bd1d5485dfe0346c79cd3e25f385 (diff) | |
download | bcm5719-llvm-9d97420473c99e761fcea0280cfa85a38ff6d6d9.tar.gz bcm5719-llvm-9d97420473c99e761fcea0280cfa85a38ff6d6d9.zip |
The exception handling intrinsics return values,
so must be lowered to a value, not nothing at all.
Subtle point: I made eh_selector return 0 and
eh_typeid_for return 1. This means that only
cleanups (destructors) will be run as the exception
unwinds [if eh_typeid_for returned 0 then it would
be as if the first catch always matched, and the
corresponding handler would be run], which is
probably want you want in the CBE.
llvm-svn: 37947
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8af76b1cd18..3312542d390 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2716,7 +2716,8 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) { unsigned TypeID = MMI->getTypeIDFor(GV); setValue(&I, DAG.getConstant(TypeID, MVT::i32)); } else { - setValue(&I, DAG.getConstant(0, MVT::i32)); + // Return something different to eh_selector. + setValue(&I, DAG.getConstant(1, MVT::i32)); } return 0; |