From: Ted Kremenek Date: Sun, 11 Apr 2010 17:02:04 +0000 (+0000) Subject: Fix bug in AddStmtChoice:asLValue() where 'AsLValueNotAlwaysAdd' would not be treated... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=431ac2d9c2f7596af6187daf88be411cb1ea34cf;p=clang Fix bug in AddStmtChoice:asLValue() where 'AsLValueNotAlwaysAdd' would not be treated as indicating an lvalue. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100965 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index 3d68551aba..e15b94ed20 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -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;