diff options
| author | Hans Wennborg <hans@hanshq.net> | 2014-06-18 01:21:33 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2014-06-18 01:21:33 +0000 |
| commit | ceddfe355d53662af717edaf7fbb1222f0b7cec9 (patch) | |
| tree | a000a0ff400175c7cc5b9d657c33328f7d949a67 /lib/CodeGen/CGExpr.cpp | |
| parent | a5bb497257b1e112cc94e6608beeb619d9576259 (diff) | |
| download | clang-ceddfe355d53662af717edaf7fbb1222f0b7cec9.tar.gz clang-ceddfe355d53662af717edaf7fbb1222f0b7cec9.tar.bz2 clang-ceddfe355d53662af717edaf7fbb1222f0b7cec9.tar.xz | |
Fix bug in code for avoiding dynamic initialization of dllimport globals
When instantiating dllimport variables with dynamic initializers, don't
bail out of Sema::InstantiateVariableInitializer without calling
PopExpressionEvaluationContext().
This was causing a stale object to stay on the ExprEvalContexts stack,
causing subsequent calls to getCurrentMangleNumberContext() to fail,
resulting in incorrect numbering of static locals (and probably other
broken things).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
