forked from OSchip/llvm-project
Fixed bug where GRConstants::AddBindings() did not check for values
that were "not a constant." llvm-svn: 46085
This commit is contained in:
parent
deac51943a
commit
7e7070b594
|
@ -225,7 +225,8 @@ ExprVariantTy GRConstants::GetBinding(Expr* E) {
|
|||
}
|
||||
|
||||
void GRConstants::AddBinding(Expr* E, ExprVariantTy V, bool isBlkLvl) {
|
||||
CurrentState = StateMgr.Add(CurrentState, DSPtr(E,isBlkLvl), V.getVal());
|
||||
if (V)
|
||||
CurrentState = StateMgr.Add(CurrentState, DSPtr(E,isBlkLvl), V.getVal());
|
||||
}
|
||||
|
||||
void GRConstants::SwitchNodeSets() {
|
||||
|
|
Loading…
Reference in New Issue