not as we expect; it may be due to racing issue of a file coming from PCH
changing after the PCH is loaded.
rdar://
11353109
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156043
91177308-0d34-0410-b5e6-
96231b3b80d8
if (DiagnoseBadString(StringToks[i]))
hadError = true;
} else {
- assert(ThisTokBuf[0] == '"' && "Expected quote, lexer broken?");
+ if (ThisTokBuf[0] != '"') {
+ // The file may have come from PCH and then changed after loading the
+ // PCH; Fail gracefully.
+ hadError = true;
+ continue;
+ }
++ThisTokBuf; // skip "
// Check if this is a pascal string