[analyzer] Avoid small vectors of non-default-constructibles.

Unconfuses certain compilers.

llvm-svn: 372942
This commit is contained in:
Artem Dergachev 2019-09-26 06:33:21 +00:00
parent ee78e44126
commit 4ed9793f98
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ public:
ProgramStateRef invalidateRegions(unsigned BlockCount,
ProgramStateRef Orig = nullptr) const;
using FrameBindingTy = std::pair<Loc, SVal>;
using FrameBindingTy = std::pair<SVal, SVal>;
using BindingsTy = SmallVectorImpl<FrameBindingTy>;
/// Populates the given SmallVector with the bindings in the callee's stack

View File

@ -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;
}