Incorrect builtins are exposed for offload targets #64436
Labels
bug
Indicates an unexpected problem or unintended behavior
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
When using
-aux-triple
for an offload target, the incorrect builtins are being exposed. The builtins exposed are not based on the target specified. e.g,will not fail when given:
-c -fopenmp -Xclang -fopenmp-is-target-device -Xclang -aux-triple -Xclang x86_64-unknown-linux-gnu
, but it should fail because that's a Windows-specific builtin. Removing the-aux-triple
will cause the assertion to trigger as expected.https://godbolt.org/z/sbMjjer16
The text was updated successfully, but these errors were encountered: