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.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
clang/test/OpenMP/driver-openmp-amdgpu.c | ||
---|---|---|
8 ↗ | (On Diff #532094) | Can you use -verify and expected-no-diagnostics? CHECK-NOT is really fragile |
clang/test/OpenMP/driver-openmp-amdgpu.c | ||
---|---|---|
8 ↗ | (On Diff #532094) | -verify only works with clang -cc1, whereas we want to make sure there is no warning for the whole compilation invoked by clang driver |
clang/test/OpenMP/driver-openmp-amdgpu.c | ||
---|---|---|
8 ↗ | (On Diff #532094) | let's then check-not for any warning? |
clang/test/OpenMP/driver-openmp-amdgpu.c | ||
---|---|---|
8 ↗ | (On Diff #532094) | It's probably reasonable that this shouldn't return any random errors so I'm fine with false positives. |