commit | 39d40baea8a6d421568d50aa9655840683bb4651 | [log] [tgz] |
---|---|---|
author | Anton Korobeynikov <asl@math.spbu.ru> | Tue Jan 15 07:02:33 2008 +0000 |
committer | Anton Korobeynikov <asl@math.spbu.ru> | Tue Jan 15 07:02:33 2008 +0000 |
tree | 91bf22e85b1b2293c66acb746a96fb0b64598628 | |
parent | 04c86181932551488b6866db4d557dbb8e35e859 [diff] [blame] |
For PR1839: add initial support for __builtin_trap. llvm-gcc part is missed as well as PPC codegen git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46001 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 2934345..67da406 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -2932,6 +2932,11 @@ setValue(&I, DAG.getNode(ISD::FLT_ROUNDS, MVT::i32)); return 0; } + + case Intrinsic::trap: { + DAG.setRoot(DAG.getNode(ISD::TRAP, MVT::Other, getRoot())); + return 0; + } } }