From: Chris Lattner Date: Sun, 26 Aug 2007 07:30:49 +0000 (+0000) Subject: these fixme's are easy :) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b2f3b72c068b360fea8342a7fc7b56fb218682a;p=clang these fixme's are easy :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41442 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGDecl.cpp b/CodeGen/CGDecl.cpp index bbfad651cc..9fd0673db1 100644 --- a/CodeGen/CGDecl.cpp +++ b/CodeGen/CGDecl.cpp @@ -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()); } } }