summaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-27 20:52:44 +0000
committerChris Lattner <sabre@nondot.org>2005-09-27 20:52:44 +0000
commitb94388a76ab8f514394d6e8a473c61778d96da93 (patch)
tree54a0d3fbf365e2f4ae0db5859657a4d61ce127b2 /lib/Target/CBackend/CBackend.cpp
parent7a66641ba9174446598598806a66bd6e11b05718 (diff)
downloadllvm-b94388a76ab8f514394d6e8a473c61778d96da93.tar.gz
llvm-b94388a76ab8f514394d6e8a473c61778d96da93.tar.bz2
llvm-b94388a76ab8f514394d6e8a473c61778d96da93.tar.xz
fix CBackend/2005-09-27-VolatileFuncPtr.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r--lib/Target/CBackend/CBackend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index df06c7ca24..8ff23b7008 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -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 << ')';