forked from OSchip/llvm-project
[analyzer][NFC] Use MemRegion::getRegion()'s return value unconditionally
Reviewed By: martong Differential Revision: https://reviews.llvm.org/D126123
This commit is contained in:
parent
813acb1297
commit
3a666dd37a
|
@ -177,8 +177,7 @@ QualType SVal::getType(const ASTContext &Context) const {
|
|||
}
|
||||
|
||||
const MemRegion *loc::MemRegionVal::stripCasts(bool StripBaseCasts) const {
|
||||
const MemRegion *R = getRegion();
|
||||
return R ? R->StripCasts(StripBaseCasts) : nullptr;
|
||||
return getRegion()->StripCasts(StripBaseCasts);
|
||||
}
|
||||
|
||||
const void *nonloc::LazyCompoundVal::getStore() const {
|
||||
|
|
Loading…
Reference in New Issue