forked from OSchip/llvm-project
[analyzer] Print type for SymbolRegionValues when dumping to stream
Reviewers: NoQ, dcoughlin, zaks.anna Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D27365 llvm-svn: 288696
This commit is contained in:
parent
7bee6ac798
commit
0dd2306538
|
@ -85,7 +85,8 @@ void SymbolMetadata::dumpToStream(raw_ostream &os) const {
|
|||
void SymbolData::anchor() { }
|
||||
|
||||
void SymbolRegionValue::dumpToStream(raw_ostream &os) const {
|
||||
os << "reg_$" << getSymbolID() << "<" << R << ">";
|
||||
os << "reg_$" << getSymbolID()
|
||||
<< '<' << getType().getAsString() << ' ' << R << '>';
|
||||
}
|
||||
|
||||
bool SymExpr::symbol_iterator::operator==(const symbol_iterator &X) const {
|
||||
|
|
|
@ -7,7 +7,7 @@ void clang_analyzer_printState();
|
|||
void clang_analyzer_numTimesReached();
|
||||
|
||||
void foo(int x) {
|
||||
clang_analyzer_dump(x); // expected-warning{{reg_$0<x>}}
|
||||
clang_analyzer_dump(x); // expected-warning{{reg_$0<int x>}}
|
||||
int y = 1;
|
||||
clang_analyzer_printState();
|
||||
for (; y < 3; ++y)
|
||||
|
|
Loading…
Reference in New Issue