I don't see why BasicValueFactory::getTruthValue(bool, QualType) always returns an unsigned APSInt even if the QualType is signed, so i fixed it.
This was causing a couple of crashes, including pr37204.
Differential D50363
[analyzer] pr37204: Take signedness into account in BasicValueFactory::getTruthValue(). NoQ on Aug 6 2018, 3:13 PM. Authored by
Details
I don't see why BasicValueFactory::getTruthValue(bool, QualType) always returns an unsigned APSInt even if the QualType is signed, so i fixed it. This was causing a couple of crashes, including pr37204.
Diff Detail |