these fixme's are easy :)

llvm-svn: 41442
This commit is contained in:
Chris Lattner 2007-08-26 07:30:49 +00:00
parent b753f66339
commit f6dcc9df7e
1 changed files with 2 additions and 4 deletions

View 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());
}
}
}