aboutsummaryrefslogtreecommitdiff
path: root/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-26 07:30:49 +0000
committerChris Lattner <sabre@nondot.org>2007-08-26 07:30:49 +0000
commit8b2f3b72c068b360fea8342a7fc7b56fb218682a (patch)
tree16eabe17aa3d2661148a81be49cce56acb33bd04 /CodeGen
parentd31beb195eb578881c2489cb464ea4051e5243ef (diff)
these fixme's are easy :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen')
-rw-r--r--CodeGen/CGDecl.cpp6
1 files changed, 2 insertions, 4 deletions
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());
}
}
}