fix CBackend/2005-09-27-VolatileFuncPtr.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-09-27 20:52:44 +00:00
parent 7a66641ba9
commit b94388a76a
2 changed files with 8 additions and 8 deletions

View File

@ -1683,8 +1683,8 @@ void CWriter::visitLoadInst(LoadInst &I) {
Out << '*';
if (I.isVolatile()) {
Out << "((";
printType(Out, I.getType());
Out << " volatile*)";
printType(Out, I.getType(), "volatile*");
Out << ")";
}
writeOperand(I.getOperand(0));
@ -1697,8 +1697,8 @@ void CWriter::visitStoreInst(StoreInst &I) {
Out << '*';
if (I.isVolatile()) {
Out << "((";
printType(Out, I.getOperand(0)->getType());
Out << " volatile*)";
printType(Out, I.getOperand(0)->getType(), " volatile*");
Out << ")";
}
writeOperand(I.getPointerOperand());
if (I.isVolatile()) Out << ')';

View File

@ -1683,8 +1683,8 @@ void CWriter::visitLoadInst(LoadInst &I) {
Out << '*';
if (I.isVolatile()) {
Out << "((";
printType(Out, I.getType());
Out << " volatile*)";
printType(Out, I.getType(), "volatile*");
Out << ")";
}
writeOperand(I.getOperand(0));
@ -1697,8 +1697,8 @@ void CWriter::visitStoreInst(StoreInst &I) {
Out << '*';
if (I.isVolatile()) {
Out << "((";
printType(Out, I.getOperand(0)->getType());
Out << " volatile*)";
printType(Out, I.getOperand(0)->getType(), " volatile*");
Out << ")";
}
writeOperand(I.getPointerOperand());
if (I.isVolatile()) Out << ')';