diff options
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index ae1db6c462..7d60dec9b8 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -444,6 +444,13 @@ void GRExprEngine::VisitLValue(Expr* Ex, NodeTy* Pred, NodeSet& Dst) { // have "locations" in the sense that we can take their address. Dst.Add(Pred); return; + + case Stmt::StringLiteralClass: { + const GRState* St = GetState(Pred); + SVal V = StateMgr.GetLValue(St, cast<StringLiteral>(Ex)); + MakeNode(Dst, Ex, Pred, SetSVal(St, Ex, V)); + return; + } default: // Arbitrary subexpressions can return aggregate temporaries that |