diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-19 16:03:09 +0000 |
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2012-02-19 16:03:09 +0000 |
| commit | d026dc499c620d0a28f492cbfc86a036c44b936e (patch) | |
| tree | 8623654a9b28affb1807caaed6d727287616836d /clang/lib/CodeGen/CGDecl.cpp | |
| parent | 4e04dd1979795f7a674479bbf48ee2ead19a3933 (diff) | |
| download | bcm5719-llvm-d026dc499c620d0a28f492cbfc86a036c44b936e.tar.gz bcm5719-llvm-d026dc499c620d0a28f492cbfc86a036c44b936e.zip | |
Make heap-allocation of std::initializer_list 'work'.
llvm-svn: 150931
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 83d74106f3b..fcea927c63a 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -1093,7 +1093,7 @@ void CodeGenFunction::EmitExprAsInit(const Expr *init, AggValueSlot::IsDestructed, AggValueSlot::DoesNotNeedGCBarriers, AggValueSlot::IsNotAliased)); - MaybeEmitStdInitializerListCleanup(lvalue, init); + MaybeEmitStdInitializerListCleanup(lvalue.getAddress(), init); } } |

