From: Chris Lattner Date: Tue, 15 Jan 2008 22:09:33 +0000 (+0000) Subject: The type of the 'abort' node should be pointer type (because X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=034f12ea0864a9cca0a74715d6fb06a8bf1dc775;p=oota-llvm.git 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46018 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 68c3ced6e56..f440738be80 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3752,7 +3752,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { TargetLowering::ArgListTy Args; std::pair 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; }