From: Ted Kremenek Date: Wed, 1 Oct 2008 05:02:13 +0000 (+0000) Subject: Use LVal::IsLValType(T) instead of checking to see if the type is an "lvalue" type... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8da6ca99ecf0ecac8fc215ccc3c5ebce154e60ee;p=clang Use LVal::IsLValType(T) instead of checking to see if the type is an "lvalue" type directly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56912 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/RValues.cpp b/lib/Analysis/RValues.cpp index 56bb250213..5dc9cd5fbe 100644 --- a/lib/Analysis/RValues.cpp +++ b/lib/Analysis/RValues.cpp @@ -250,7 +250,7 @@ RVal RVal::GetSymbolValue(SymbolManager& SymMgr, VarDecl* D) { QualType T = D->getType(); - if (T->isPointerLikeType() || T->isObjCQualifiedIdType()) + if (LVal::IsLValType(T)) return lval::SymbolVal(SymMgr.getSymbol(D)); return nonlval::SymbolVal(SymMgr.getSymbol(D));