mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
Evaluate the initializer for automatic variables.
llvm-svn: 39771
This commit is contained in:
@@ -84,7 +84,9 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const BlockVarDecl &D) {
|
||||
assert(DMEntry == 0 && "Decl already exists in localdeclmap!");
|
||||
DMEntry = DeclPtr;
|
||||
|
||||
// FIXME: Evaluate initializer.
|
||||
// If this local has an initializer, emit it now.
|
||||
if (const Expr *Init = D.getInit())
|
||||
EmitStoreThroughLValue(EmitExpr(Init), LValue::MakeAddr(DeclPtr), Ty);
|
||||
}
|
||||
|
||||
/// Emit an alloca for the specified parameter and set up LocalDeclMap.
|
||||
|
||||
Reference in New Issue
Block a user