HomePhabricator

[analyzer] Canonicalize declarations within variable regions.

Description

[analyzer] Canonicalize declarations within variable regions.

Memory region that correspond to a variable is identified by the variable's
declaration and, in case of local variables, the stack frame it belongs to.

The declaration needs to be canonical, otherwise we'd have two different
memory regions that correspond to the same variable.

Fix such bug for global variables with forward declarations and assert
that no other problems of this kind happen.

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

Details

Committed
NoQFeb 6 2019, 4:30 PM
Differential Revision
D57619: [analyzer] Canonicalize variable declarations in VarRegion objects.
Branches
Unknown
Tags
Unknown