Use a pointer type rather than MVT::Other for the ExternalSymbol node used

in an inline asm.

llvm-svn: 92512
This commit is contained in:
Dan Gohman 2010-01-04 21:00:54 +00:00
parent 5d1987f9a0
commit feeced4104
1 changed files with 2 additions and 1 deletions

View 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