Author: lattner
Date: Tue Jan 15 16:09:33 2008
New Revision: 46018

URL: http://llvm.org/viewvc/llvm-project?rev=46018&view=rev
Log:
The type of the 'abort' node should be pointer type (because
it's a function pointer) not MVT::Other.  This fixes builtin_trap
lowering on ppc, alpha, ia64

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: 
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=46018&r1=46017&r2=46018&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Jan 15 16:09:33 2008
@@ -3752,7 +3752,8 @@
       TargetLowering::ArgListTy Args;
       std::pair<SDOperand,SDOperand> CallResult =
         TLI.LowerCallTo(Tmp1, Type::VoidTy, false, false, CallingConv::C, 
false,
-                        DAG.getExternalSymbol("abort", MVT::Other), Args, DAG);
+                        DAG.getExternalSymbol("abort", TLI.getPointerTy()),
+                        Args, DAG);
       Result = CallResult.second;
       break;
     }


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to