[analyzer] Fix Z3 backend after D48205
authorMikhail R. Gadelha <mikhail.ramalho@gmail.com>
Tue, 17 Jul 2018 17:40:34 +0000 (17:40 +0000)
committerMikhail R. Gadelha <mikhail.ramalho@gmail.com>
Tue, 17 Jul 2018 17:40:34 +0000 (17:40 +0000)
commit81943b805b41f921fe97acbb2db2592ee05e76da
tree73a706fe6b9260b1515ab1bd96183afc88feb084
parent4a53bc63c24f2c9e994095494ca6f3381965f55c
[analyzer] Fix Z3 backend after D48205

Summary:
An assertion was added in D48205 to catch places where a `nonloc::SymbolVal` was wrapping a `loc` object.

This patch fixes that in the Z3 backend by making the `SValBuilder` object accessible from inherited instances of `SimpleConstraintManager` and calling `SVB.makeSymbolVal(foo)` instead of `nonloc::SymbolVal(foo)`.

Reviewers: NoQ, george.karpenkov

Reviewed By: NoQ

Subscribers: xazax.hun, szepet, a.sidorin

Differential Revision: https://reviews.llvm.org/D49430

llvm-svn: 337304
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SimpleConstraintManager.h
clang/lib/StaticAnalyzer/Core/Z3ConstraintManager.cpp