Fix bug: test/Regression/CBackend/2002-08-26-IndirectCallTest.ll
authorChris Lattner <sabre@nondot.org>
Mon, 26 Aug 2002 20:50:09 +0000 (20:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Aug 2002 20:50:09 +0000 (20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3511 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index e52c15b0f178c9748b34cd87cdaa006683d3f94a..5ac5f7de49d27e3b312de87c3d90fc086d5bc140 100644 (file)
@@ -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));
index e52c15b0f178c9748b34cd87cdaa006683d3f94a..5ac5f7de49d27e3b312de87c3d90fc086d5bc140 100644 (file)
@@ -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));