aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-26 20:50:09 +0000
committerChris Lattner <sabre@nondot.org>2002-08-26 20:50:09 +0000
commitfabc8803a3b75a881644f393976153d7510df78e (patch)
tree997a24f129d26d14a818665f5b2abb89bb6ed8e8 /lib/Target/CBackend/CBackend.cpp
parentaa250b806705f4a219983528dc54e1d9149df86d (diff)
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
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index e52c15b0f1..5ac5f7de49 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<FunctionType>(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));