aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2025-05-12 13:44:03 -0400
committerGitHub <noreply@github.com>2025-05-12 13:44:03 -0400
commit70ca3f41fa1a16ede0b33e0780c04360b50e4dee (patch)
treea9d1d61e776900620afc4339cbe5485ad4190153 /llvm/lib/Support/CommandLine.cpp
parentb17f3c63de038eac7f93f56dd099ba8995be7e55 (diff)
downloadllvm-70ca3f41fa1a16ede0b33e0780c04360b50e4dee.zip
llvm-70ca3f41fa1a16ede0b33e0780c04360b50e4dee.tar.gz
llvm-70ca3f41fa1a16ede0b33e0780c04360b50e4dee.tar.bz2
[OpenMP] Fix crash on invalid with cancel directive (#139577)
If the next token after 'cancel' is a special token, we would trigger an assertion. We should be consuming any token, same as elsewhere in the function. Note, we could check for an unknown directive and do different error recovery, but that caused too many behavioral changes for other tests in the form of "unexpected tokens ignored" diagnostics that didn't seem like an improvement for the test cases. Fixes #139360
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions