aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-29 01:46:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-29 01:46:05 +0000
commit930b71a4a7dedf70a73e5fd875bae7df452b80a9 (patch)
tree172661f4fca059d5090b94c6de1b22dac24e5935
parent3c415447d5d51d9527fbb5e3f42e19719fdae19b (diff)
CharLiteralParser::IsMultiChar was sometimes uninitialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77420 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Lex/LiteralSupport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp
index f8b9258457..5da0e9c3ef 100644
--- a/lib/Lex/LiteralSupport.cpp
+++ b/lib/Lex/LiteralSupport.cpp
@@ -688,7 +688,8 @@ CharLiteralParser::CharLiteralParser(const char *begin, const char *end,
else
PP.Diag(Loc, diag::ext_four_char_character_literal);
IsMultiChar = true;
- }
+ } else
+ IsMultiChar = false;
// Transfer the value from APInt to uint64_t
Value = LitVal.getZExtValue();