[cfe-commits] r50486 - /cfe/trunk/lib/Analysis/GRSimpleVals.cpp

Ted Kremenek kremenek at apple.com
Wed Apr 30 09:07:22 PDT 2008


Author: kremenek
Date: Wed Apr 30 11:07:22 2008
New Revision: 50486

URL: http://llvm.org/viewvc/llvm-project?rev=50486&view=rev
Log:
Handle lval::ArrayOffset and lval::FieldOffset in EvalNE and EvalEQ.

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

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

==============================================================================
--- cfe/trunk/lib/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/lib/Analysis/GRSimpleVals.cpp Wed Apr 30 11:07:22 2008
@@ -483,6 +483,11 @@
       return UnknownVal();      
     }
       
+      // FIXME: Different offsets can map to the same memory cell.
+    case lval::ArrayOffsetKind:
+    case lval::FieldOffsetKind:
+      // Fall-through.
+      
     case lval::DeclValKind:
     case lval::FuncValKind:
     case lval::GotoLabelKind:
@@ -541,6 +546,11 @@
       break;
     }
       
+      // FIXME: Different offsets can map to the same memory cell.
+    case lval::ArrayOffsetKind:
+    case lval::FieldOffsetKind:
+      // Fall-through.
+      
     case lval::DeclValKind:
     case lval::FuncValKind:
     case lval::GotoLabelKind:





More information about the cfe-commits mailing list