From: Ted Kremenek Date: Mon, 12 May 2008 17:41:30 +0000 (+0000) Subject: Support StringLiteralVal when comparing LVal types. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=666de3be924efb85e12c27ae1937c459a4b6ecc7;p=clang Support StringLiteralVal when comparing LVal types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50979 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/GRSimpleVals.cpp b/lib/Analysis/GRSimpleVals.cpp index b57cb57c32..0933265493 100644 --- a/lib/Analysis/GRSimpleVals.cpp +++ b/lib/Analysis/GRSimpleVals.cpp @@ -569,6 +569,7 @@ RVal GRSimpleVals::EvalEQ(GRExprEngine& Eng, LVal L, LVal R) { case lval::DeclValKind: case lval::FuncValKind: case lval::GotoLabelKind: + case lval::StringLiteralValKind: return NonLVal::MakeIntTruthVal(BasicVals, L == R); } @@ -632,6 +633,7 @@ RVal GRSimpleVals::EvalNE(GRExprEngine& Eng, LVal L, LVal R) { case lval::DeclValKind: case lval::FuncValKind: case lval::GotoLabelKind: + case lval::StringLiteralValKind: return NonLVal::MakeIntTruthVal(BasicVals, L != R); }