We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858d3e1 commit 7b31ef5Copy full SHA for 7b31ef5
lib/Parse/ParseRegex.cpp
@@ -47,7 +47,6 @@ ParserResult<Expr> Parser::parseExprRegexLiteral() {
47
auto capturesBuf = Context.AllocateUninitialized<uint8_t>(
48
RegexLiteralExpr::getCaptureStructureSerializationAllocationSize(
49
regexText.size()));
50
-
51
bool hadError =
52
regexLiteralParsingFn(regexText.str().c_str(), &version,
53
/*captureStructureOut*/ capturesBuf.data(),
@@ -56,6 +55,7 @@ ParserResult<Expr> Parser::parseExprRegexLiteral() {
56
55
getBridgedDiagnosticEngine(&Diags));
57
auto loc = consumeToken();
58
SourceMgr.recordRegexLiteralStartLoc(loc);
+
59
if (hadError) {
60
return makeParserResult(new (Context) ErrorExpr(loc));
61
}
0 commit comments