From: Chris Lattner Date: Mon, 26 Aug 2002 20:50:09 +0000 (+0000) Subject: Fix bug: test/Regression/CBackend/2002-08-26-IndirectCallTest.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fabc8803a3b75a881644f393976153d7510df78e;p=oota-llvm.git Fix bug: test/Regression/CBackend/2002-08-26-IndirectCallTest.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3511 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index e52c15b0f17..5ac5f7de49d 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -778,7 +778,8 @@ void CWriter::visitCallInst(CallInst &I) { const FunctionType *FTy = cast(PTy->getElementType()); const Type *RetTy = FTy->getReturnType(); - Out << getValueName(I.getOperand(0)) << "("; + writeOperand(I.getOperand(0)); + Out << "("; if (I.getNumOperands() > 1) { writeOperand(I.getOperand(1)); diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index e52c15b0f17..5ac5f7de49d 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -778,7 +778,8 @@ void CWriter::visitCallInst(CallInst &I) { const FunctionType *FTy = cast(PTy->getElementType()); const Type *RetTy = FTy->getReturnType(); - Out << getValueName(I.getOperand(0)) << "("; + writeOperand(I.getOperand(0)); + Out << "("; if (I.getNumOperands() > 1) { writeOperand(I.getOperand(1));