1. Remove noreturn attribute from __builtin_debugtrap().
authorShuxin Yang <shuxin.llvm@gmail.com>
Fri, 19 Oct 2012 23:00:20 +0000 (23:00 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Fri, 19 Oct 2012 23:00:20 +0000 (23:00 +0000)
  (The change at Clang side was committed in r166345)

2. Cosmetic change in order to conform to coding standards.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166350 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Intrinsics.td
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

index cf33a265d6e5bc9686a1fbbfba49188f407468bd..2e1597fe6f6bd1f4fc52729e726c033d2dc752f4 100644 (file)
@@ -420,7 +420,7 @@ def int_flt_rounds : Intrinsic<[llvm_i32_ty]>,
                      GCCBuiltin<"__builtin_flt_rounds">;
 def int_trap : Intrinsic<[], [], [IntrNoReturn]>,
                GCCBuiltin<"__builtin_trap">;
-def int_debugtrap : Intrinsic<[], [], [IntrNoReturn]>,
+def int_debugtrap : Intrinsic<[]>,
                     GCCBuiltin<"__builtin_debugtrap">;
 
 // NOP: calls/invokes to this intrinsic are removed by codegen
index c46df309356d5275cca951dceeeff1c7e1f6b1ef..abf40b77a18f080d84759d686867f92c396f13e8 100644 (file)
@@ -1245,8 +1245,8 @@ void SelectionDAGLegalize::LegalizeOp(SDNode *Node) {
     if (Action == TargetLowering::Expand) {
       // replace ISD::DEBUGTRAP with ISD::TRAP
       SDValue NewVal;
-      NewVal = DAG.getNode (ISD::TRAP, Node->getDebugLoc(), Node->getVTList(),
-                            Node->getOperand(0));
+      NewVal = DAG.getNode(ISD::TRAP, Node->getDebugLoc(), Node->getVTList(),
+                           Node->getOperand(0));
       ReplaceNode(Node, NewVal.getNode());
       LegalizeOp(NewVal.getNode());
       return;