From fabc8803a3b75a881644f393976153d7510df78e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Aug 2002 20:50:09 +0000 Subject: [PATCH] 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 --- lib/Target/CBackend/CBackend.cpp | 3 ++- lib/Target/CBackend/Writer.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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)); -- 2.34.1