aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJava.cpp
diff options
context:
space:
mode:
authorYaxun (Sam) Liu <yaxun.liu@amd.com>2023-06-16 00:36:00 -0400
committerYaxun (Sam) Liu <yaxun.liu@amd.com>2023-06-16 17:48:27 -0400
commitc8c583071591dbc6927955e608dcd44c0bac8b9c (patch)
tree14faf7ee36eedcbd80aba4ca1cbd1f7782d08ce8 /clang/unittests/Format/FormatTestJava.cpp
parentf1bb534b0ab53fab501fa92c4ef0f5eaf75c6bd6 (diff)
downloadllvm-c8c583071591dbc6927955e608dcd44c0bac8b9c.zip
llvm-c8c583071591dbc6927955e608dcd44c0bac8b9c.tar.gz
llvm-c8c583071591dbc6927955e608dcd44c0bac8b9c.tar.bz2
Fix diag for read-only target features
Currently the diag is emitted even when there is no target feature specified on command line for OpenMP. This is because the function to initialize feature map is also used with cached feature string. The fix is to only diag when the feature map is initialized with feature strings from command line options. Reviewed by: Joseph Huber, Matt Arsenault, Johannes Doerfert Differential Revision: https://reviews.llvm.org/D153123
Diffstat (limited to 'clang/unittests/Format/FormatTestJava.cpp')
0 files changed, 0 insertions, 0 deletions