diff options
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index acb7736e45..46f0335796 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -1656,9 +1656,9 @@ void CWriter::printIndexingExpression(Value *Ptr, gep_type_iterator I, void CWriter::visitLoadInst(LoadInst &I) { Out << '*'; if (I.isVolatile()) { - Out << "((volatile "; - printType(Out, I.getOperand(0)->getType()); - Out << ")"; + Out << "(("; + printType(Out, I.getType()); + Out << " volatile*)"; } writeOperand(I.getOperand(0)); @@ -1670,9 +1670,9 @@ void CWriter::visitLoadInst(LoadInst &I) { void CWriter::visitStoreInst(StoreInst &I) { Out << '*'; if (I.isVolatile()) { - Out << "((volatile "; - printType(Out, I.getPointerOperand()->getType()); - Out << ")"; + Out << "(("; + printType(Out, I.getOperand(0)->getType()); + Out << " volatile*)"; } writeOperand(I.getPointerOperand()); if (I.isVolatile()) Out << ")"; |