Fixed bug in Regression/CBackend/2002-10-30-FunctionPointerAlloca.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Hildenbrandt 2002-11-01 17:37:09 +00:00
parent 4f53bef7cd
commit 7e9fea736d
2 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ ostream &CWriter::printType(const Type *Ty, const string &NameSoFar,
case Type::FunctionTyID: {
const FunctionType *MTy = cast<FunctionType>(Ty);
printType(MTy->getReturnType(), "");
Out << " " << NameSoFar << " (";
Out << " (" << NameSoFar << ") (";
for (FunctionType::ParamTypes::const_iterator
I = MTy->getParamTypes().begin(),

View File

@ -208,7 +208,7 @@ ostream &CWriter::printType(const Type *Ty, const string &NameSoFar,
case Type::FunctionTyID: {
const FunctionType *MTy = cast<FunctionType>(Ty);
printType(MTy->getReturnType(), "");
Out << " " << NameSoFar << " (";
Out << " (" << NameSoFar << ") (";
for (FunctionType::ParamTypes::const_iterator
I = MTy->getParamTypes().begin(),