зеркало из https://github.com/microsoft/clang.git
Evaluate the initializer for automatic variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
24c3990cd2
Коммит
1978596a6f
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче