In our downstream, we discovered that the that the .* wildcard
in debug-info-hotpatch.cpp (added https://reviews.llvm.org/D116511)
ended up matching the entire line on our Windows configurations, causing
the -function-padmin check to already be consumed. After digging into it
we weren't able to find any sort of reason why the platform would matter
here, however we suspect there must be some difference in the regex
matcher between systems.
This NFC patch replaces the regex with a more conservative regex that
prevents this from happening by replacing the . match with an 'everything
but double-quote match, [^"].
Details
Diff Detail
Event Timeline
Commit message isn't particularly good either.
Perhaps something like:
[NFC] Fix debug-info-hotpatch.cpp failure due to downstream regex issue
In our downstream, we discovered that the that the .* wildcard
in debug-info-hotpatch.cpp (added https://reviews.llvm.org/D116511)
ended up matching the entire line on our Windows configurations, causing
the -function-padmin check to already be consumed. After digging into it
we weren't able to find any sort of reason why the platform would matter
here, however we suspect there must be some difference in the regex matcher
between systems.This NFC patch replaces the regex with a more conservative regex that prevents
this from happening by replacing the . match with an 'everything but double-
quote match, [^"].
clang/test/CodeGenCXX/debug-info-hotpatch.cpp | ||
---|---|---|
17 | This part of the change shouldn't be necessary, right? I'd probably prefer not to have this part unless needed. |
Seems to me there have been other cases where .* matching was greedier than expected, so this seems like the right fix.
This part of the change shouldn't be necessary, right? I'd probably prefer not to have this part unless needed.