[Clang] Improve diagnostic message for loop hint pragma
authoreopXD <yueh.ting.chen@gmail.com>
Thu, 27 Oct 2022 07:42:46 +0000 (00:42 -0700)
committereopXD <yueh.ting.chen@gmail.com>
Fri, 28 Oct 2022 08:51:24 +0000 (01:51 -0700)
commitbeb997799d823aece097494f156c6d277d26571c
tree086efbb09a64ae20a969ca02aa5c787ce05d26c7
parentf589e5067fc8c15d8fc228169055c63ff29b2c14
[Clang] Improve diagnostic message for loop hint pragma

Originally the loop hint is not displayed correctly in the diagnostic.
This patch fixes it.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D136784
clang/lib/Parse/ParsePragma.cpp
clang/test/Parser/pragma-loop.cpp