[clang] [Clang] Rename OffloadArch::UNUSED to UNUSED_ to avoid macro collisions (PR #174528)
Khem Raj via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 14 08:49:57 PST 2026
================
@@ -175,7 +175,8 @@ void NVPTXTargetInfo::getTargetDefines(const LangOptions &Opts,
// Skip setting architecture dependent macros if undefined.
if (!IsNVIDIAOffloadArch(GPU))
- return;
+ if (GPU == OffloadArch::Unused && !HostTarget)
----------------
kraj wrote:
Yes it is. The CI 2was failing for the indentation I therefore added it . I can remove it if that’s better
https://github.com/llvm/llvm-project/pull/174528
More information about the cfe-commits
mailing list