diff options
| author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-09-26 06:33:21 +0000 |
|---|---|---|
| committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-09-26 06:33:21 +0000 |
| commit | 4ed9793f980fd6c07f8f55cc8463301c3521f679 (patch) | |
| tree | 453a73c0eff03e34baa7f27d534f99ee89837762 /clang/lib/StaticAnalyzer/Core/Store.cpp | |
| parent | ee78e44126ad1749ff5d3d89d0ac132d06d9ea54 (diff) | |
| download | bcm5719-llvm-4ed9793f980fd6c07f8f55cc8463301c3521f679.tar.gz bcm5719-llvm-4ed9793f980fd6c07f8f55cc8463301c3521f679.zip | |
[analyzer] Avoid small vectors of non-default-constructibles.
Unconfuses certain compilers.
llvm-svn: 372942
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/Store.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/Store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/Store.cpp b/clang/lib/StaticAnalyzer/Core/Store.cpp index 3cf616161c6..b4ab6877726 100644 --- a/clang/lib/StaticAnalyzer/Core/Store.cpp +++ b/clang/lib/StaticAnalyzer/Core/Store.cpp @@ -52,7 +52,7 @@ StoreRef StoreManager::enterStackFrame(Store OldStore, Call.getInitialStackFrameContents(LCtx, InitialBindings); for (const auto &I : InitialBindings) - Store = Bind(Store.getStore(), I.first, I.second); + Store = Bind(Store.getStore(), I.first.castAs<Loc>(), I.second); return Store; } |

