]> granicus.if.org Git - clang/commitdiff
Fix bug in AddStmtChoice:asLValue() where 'AsLValueNotAlwaysAdd' would not be treated...
authorTed Kremenek <kremenek@apple.com>
Sun, 11 Apr 2010 17:02:04 +0000 (17:02 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 11 Apr 2010 17:02:04 +0000 (17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100965 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 3d68551aba289505f223012a52cf8062f230405f..e15b94ed2098747212df737a13c5354ac16bc1b2 100644 (file)
@@ -46,7 +46,7 @@ public:
   AddStmtChoice(Kind kind) : k(kind) {}
 
   bool alwaysAdd() const { return (unsigned)k & 0x1; }
-  bool asLValue() const { return k >= AlwaysAddAsLValue; }
+  bool asLValue() const { return k >= AsLValueNotAlwaysAdd; }
 
 private:
   Kind k;