]> granicus.if.org Git - clang/commitdiff
CharLiteralParser::IsMultiChar was sometimes uninitialized.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 01:46:05 +0000 (01:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 01:46:05 +0000 (01:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77420 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/LiteralSupport.cpp

index f8b92584575718c491e39e474b38e5c5921575e5..5da0e9c3ef73c10d94eaed360c4ac43dac04f0ab 100644 (file)
@@ -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();