diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-11 21:57:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-11 21:57:34 +0000 |
commit | 0f4b0d27f8e3f2c9a3066f4a025bc90feb529ee0 (patch) | |
tree | f935182d5f57c43a57250e268df5d160a8fb86ba /clang/lib/Analysis/MemRegion.cpp | |
parent | 99bee42be2dcdd28a5ffc96fb8adc32392f915e9 (diff) | |
download | bcm5719-llvm-0f4b0d27f8e3f2c9a3066f4a025bc90feb529ee0.tar.gz bcm5719-llvm-0f4b0d27f8e3f2c9a3066f4a025bc90feb529ee0.zip |
Add TypedViewRegion::isBoundable() to indicate whether or not the
TypedViewRegion has a valid rvalue type. Also renamed instance variable 'T' to
'LvalueType' to make it unambiguous of its purpose.
This fixes some crashes I was seeing after:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090309/013771.html
This is because 'isBoundable()' is defined in TypedRegion (the parent class) in
terms of the rvalue type (which could be null), while for TypedViewRegion it
should be defined in terms of the lvalue type.
llvm-svn: 66712
Diffstat (limited to 'clang/lib/Analysis/MemRegion.cpp')
-rw-r--r-- | clang/lib/Analysis/MemRegion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/MemRegion.cpp b/clang/lib/Analysis/MemRegion.cpp index c304b659b69..5bfc989eb80 100644 --- a/clang/lib/Analysis/MemRegion.cpp +++ b/clang/lib/Analysis/MemRegion.cpp @@ -172,7 +172,7 @@ void AllocaRegion::print(llvm::raw_ostream& os) const { } void TypedViewRegion::print(llvm::raw_ostream& os) const { - os << "typed_view{" << T.getAsString() << ','; + os << "typed_view{" << LValueType.getAsString() << ','; getSuperRegion()->print(os); os << '}'; } |