[cfe-commits] r56912 - /cfe/trunk/lib/Analysis/RValues.cpp

Ted Kremenek kremenek at apple.com
Tue Sep 30 22:02:13 PDT 2008


Author: kremenek
Date: Wed Oct  1 00:02:13 2008
New Revision: 56912

URL: http://llvm.org/viewvc/llvm-project?rev=56912&view=rev
Log:
Use LVal::IsLValType(T) instead of checking to see if the type is an "lvalue" type directly.

Modified:
    cfe/trunk/lib/Analysis/RValues.cpp

Modified: cfe/trunk/lib/Analysis/RValues.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RValues.cpp?rev=56912&r1=56911&r2=56912&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/RValues.cpp (original)
+++ cfe/trunk/lib/Analysis/RValues.cpp Wed Oct  1 00:02:13 2008
@@ -250,7 +250,7 @@
 
   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));





More information about the cfe-commits mailing list