summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-15 22:09:33 +0000
committerChris Lattner <sabre@nondot.org>2008-01-15 22:09:33 +0000
commitec224888a6c7334884bdeb5fea9eeeadd113c9cb (patch)
tree9e898e4198d09717fbbe714254fd2e0815da32fe /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent9a249b0ce5dac3a0e2564cbbd2c2a7036bdfbcf7 (diff)
downloadbcm5719-llvm-ec224888a6c7334884bdeb5fea9eeeadd113c9cb.tar.gz
bcm5719-llvm-ec224888a6c7334884bdeb5fea9eeeadd113c9cb.zip
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 llvm-svn: 46018
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 68c3ced6e56..f440738be80 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3752,7 +3752,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
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;
}
OpenPOWER on IntegriCloud