[cfe-commits] r41442 - /cfe/trunk/CodeGen/CGDecl.cpp

Chris Lattner sabre at nondot.org
Sun Aug 26 00:30:49 PDT 2007


Author: lattner
Date: Sun Aug 26 02:30:49 2007
New Revision: 41442

URL: http://llvm.org/viewvc/llvm-project?rev=41442&view=rev
Log:
these fixme's are easy :)

Modified:
    cfe/trunk/CodeGen/CGDecl.cpp

Modified: cfe/trunk/CodeGen/CGDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGDecl.cpp?rev=41442&r1=41441&r2=41442&view=diff

==============================================================================
--- cfe/trunk/CodeGen/CGDecl.cpp (original)
+++ cfe/trunk/CodeGen/CGDecl.cpp Sun Aug 26 02:30:49 2007
@@ -87,13 +87,11 @@
   if (const Expr *Init = D.getInit()) {
     if (!hasAggregateLLVMType(Init->getType())) {
       llvm::Value *V = EmitScalarExpr(Init);
-      // FIXME: Handle volatile.
-      Builder.CreateStore(V, DeclPtr);
+      Builder.CreateStore(V, DeclPtr, D.getType().isVolatileQualified());
     } else if (Init->getType()->isComplexType()) {
       EmitComplexExprIntoAddr(Init, DeclPtr);
     } else {
-      // FIXME: Handle volatile.
-      EmitAggExpr(Init, DeclPtr, false);
+      EmitAggExpr(Init, DeclPtr, D.getType().isVolatileQualified());
     }
   }
 }





More information about the cfe-commits mailing list