Make torque run fine in CFI builds with -std=c++17
It's not yet understood how this worked with c++14. Add the workaround, so that we can figure this out in parallel with -std=c++17 enablement. Bug: chromium:1273966 Change-Id: I7098d345a5df6e208dfd582eeaecab22e52fecb9 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3304143 Auto-Submit: Nico Weber <thakis@chromium.org> Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Reviewed-by: Hannes Payer <hpayer@chromium.org> Commit-Queue: Adam Klein <adamk@chromium.org> Commit-Queue: Hannes Payer <hpayer@chromium.org> Cr-Commit-Position: refs/heads/main@{#78135}
This commit is contained in:
parent
7b85e666ee
commit
496d95ff25
@ -279,6 +279,7 @@ const Item* RunEarleyAlgorithm(
|
||||
}
|
||||
|
||||
// static
|
||||
DISABLE_CFI_ICALL
|
||||
bool Grammar::MatchChar(int (*char_class)(int), InputPosition* pos) {
|
||||
if (**pos && char_class(static_cast<unsigned char>(**pos))) {
|
||||
++*pos;
|
||||
|
Loading…
Reference in New Issue
Block a user