forked from OSchip/llvm-project
[analyzer] Avoid small vectors of non-default-constructibles.
Unconfuses certain compilers. llvm-svn: 372942
This commit is contained in:
parent
ee78e44126
commit
4ed9793f98
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue