From 2bfe9ea8229473fc412c6a670f1b9d6d956b64bc Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 25 Apr 2008 01:45:38 +0000 Subject: [PATCH] Don't abort on GetRVal when the LVal is a StringLiteralVal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50245 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/ValueState.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Analysis/ValueState.cpp b/lib/Analysis/ValueState.cpp index 94c62281aa..501d801da7 100644 --- a/lib/Analysis/ValueState.cpp +++ b/lib/Analysis/ValueState.cpp @@ -212,6 +212,10 @@ RVal ValueStateManager::GetRVal(ValueState* St, LVal LV, QualType T) { return UnknownVal(); } + case lval::StringLiteralValKind: + // FIXME: Implement better support for fetching characters from strings. + return UnknownVal(); + default: assert (false && "Invalid LVal."); break;