summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/ValueState.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-22 21:39:21 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-22 21:39:21 +0000
commitc79c0591d6c63eb7e06e68faadcff14abb056b52 (patch)
tree8fe082b5e4c55091f4097a4e8ecfe03a49168670 /clang/lib/Analysis/ValueState.cpp
parenteccf3e582114611d2b6c1915f709ddc6f6b7943e (diff)
downloadbcm5719-llvm-c79c0591d6c63eb7e06e68faadcff14abb056b52.tar.gz
bcm5719-llvm-c79c0591d6c63eb7e06e68faadcff14abb056b52.zip
Added lval type (and tracking) for StringLiterals.
llvm-svn: 50109
Diffstat (limited to 'clang/lib/Analysis/ValueState.cpp')
-rw-r--r--clang/lib/Analysis/ValueState.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Analysis/ValueState.cpp b/clang/lib/Analysis/ValueState.cpp
index bba2e06a180..8027ce9fcba 100644
--- a/clang/lib/Analysis/ValueState.cpp
+++ b/clang/lib/Analysis/ValueState.cpp
@@ -264,6 +264,9 @@ RVal ValueStateManager::GetRVal(ValueState* St, Expr* E) {
case Stmt::IntegerLiteralClass: {
return NonLVal::MakeVal(BasicVals, cast<IntegerLiteral>(E));
}
+
+ case Stmt::StringLiteralClass:
+ return LVal::MakeVal(cast<StringLiteral>(E));
// Casts where the source and target type are the same
// are no-ops. We blast through these to get the descendant
OpenPOWER on IntegriCloud