]> granicus.if.org Git - clang/commitdiff
these fixme's are easy :)
authorChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 07:30:49 +0000 (07:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Aug 2007 07:30:49 +0000 (07:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41442 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGDecl.cpp

index bbfad651cc72c194f939029b661edc6aed7b3ac3..9fd0673db18ed88c40e10585115c3dbe40b398a0 100644 (file)
@@ -87,13 +87,11 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const BlockVarDecl &D) {
   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());
     }
   }
 }