================
@@ -5226,7 +5226,8 @@ void Sema::AddModeAttr(Decl *D, const AttributeCommonInfo
&CI,
if (NewElemTy.isNull()) {
// Only emit diagnostic on host for 128-bit mode attribute
if (!(DestWidth == 128 &&
- (getLangOpts().CUDAIsDevice || getLangOpts().SYCLIsDevice)))
+ (getLangOpts().CUDAIsDevice || getLangOpts().SYCLIsDevice ||
----------------
sarnex wrote:
can we instead use `getLangOpts().isTargetDevice()`? it does exactly this
already:
https://github.com/llvm/llvm-project/pull/214497
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits