Skip to content

Commit c50c5a9

Browse files
committed
[clang]: fix __neon_vector__type support when using OpenMP offloading
1 parent cfea753 commit c50c5a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8337,7 +8337,7 @@ static bool verifyValidIntegerConstantExpr(Sema &S, const ParsedAttr &Attr,
83378337
static void HandleNeonVectorTypeAttr(QualType &CurType, const ParsedAttr &Attr,
83388338
Sema &S, VectorKind VecKind) {
83398339
const TargetInfo *AuxTI = S.getASTContext().getAuxTargetInfo();
8340-
bool IsArm = AuxTI->getTriple().isAArch64() || AuxTI->getTriple().isARM();
8340+
bool IsArm = AuxTI && (AuxTI->getTriple().isAArch64() || AuxTI->getTriple().isARM());
83418341

83428342
bool IsTargetCUDAAndHostARM = IsArm && S.getLangOpts().CUDAIsDevice;
83438343
bool IsTargetOpenMPDeviceAndHostARM = IsArm && S.getLangOpts().OpenMPIsTargetDevice;

0 commit comments

Comments
 (0)