This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Fix Z3 backend after D48205
ClosedPublic

Authored by mikhail.ramalho on Jul 17 2018, 9:36 AM.

Details

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).

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.Jul 17 2018, 10:20 AM

Yup, that's the intended approach :)

This revision is now accepted and ready to land.Jul 17 2018, 10:20 AM
This revision was automatically updated to reflect the committed changes.