summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-04 21:00:54 +0000
committerDan Gohman <gohman@apple.com>2010-01-04 21:00:54 +0000
commitfeeced410484be20c91f2b8d49895658c5d724d6 (patch)
treebadfa934f302983ed4275c47da0bd3e0cf9b3b7a /llvm/lib/CodeGen
parent5d1987f9a02c4f20b254ec669908f0220cd13f53 (diff)
downloadbcm5719-llvm-feeced410484be20c91f2b8d49895658c5d724d6.tar.gz
bcm5719-llvm-feeced410484be20c91f2b8d49895658c5d724d6.zip
Use a pointer type rather than MVT::Other for the ExternalSymbol node used
in an inline asm. llvm-svn: 92512
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 40eb9eeb82a..3db2cb5ebca 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -6068,7 +6068,8 @@ void SelectionDAGBuilder::visitInlineAsm(CallSite CS) {
std::vector<SDValue> AsmNodeOperands;
AsmNodeOperands.push_back(SDValue()); // reserve space for input chain
AsmNodeOperands.push_back(
- DAG.getTargetExternalSymbol(IA->getAsmString().c_str(), MVT::Other));
+ DAG.getTargetExternalSymbol(IA->getAsmString().c_str(),
+ TLI.getPointerTy()));
// Loop over all of the inputs, copying the operand values into the
OpenPOWER on IntegriCloud