diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-30 05:49:49 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2008-11-30 05:49:49 +0000 |
commit | 6987c7b74146b9658b1925c5981f8b0cd0672b55 (patch) | |
tree | e381e9d8c2213257bf63884d1ce9c68fc7775390 /lib/Analysis/GRExprEngine.cpp | |
parent | 994ffef4353056363ba5915eeecf0e1b0678f286 (diff) |
Add support for initializing array with string literal.
This fixes PR3127
http://llvm.org/bugs/show_bug.cgi?id=3127
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index ee6b020240..5d4136de76 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -405,6 +405,10 @@ void GRExprEngine::Visit(Stmt* S, NodeTy* Pred, NodeSet& Dst) { break; } + + case Stmt::StringLiteralClass: + VisitLValue(cast<StringLiteral>(S), Pred, Dst); + break; case Stmt::UnaryOperatorClass: VisitUnaryOperator(cast<UnaryOperator>(S), Pred, Dst, false); |