aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
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 << ')';