Use a pointer type rather than MVT::Other for the ExternalSymbol node used
authorDan Gohman <gohman@apple.com>
Mon, 4 Jan 2010 21:00:54 +0000 (21:00 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 4 Jan 2010 21:00:54 +0000 (21:00 +0000)
in an inline asm.

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

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

index 40eb9eeb82a97f607f6c256d308899673d5b79e5..3db2cb5ebcab37ff124fe25853c1936897577555 100644 (file)
@@ -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