summaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaSYCL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Sema/SemaSYCL.cpp')
-rw-r--r--clang/lib/Sema/SemaSYCL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaSYCL.cpp b/clang/lib/Sema/SemaSYCL.cpp
index ca0254d29e7f..18ebaa13346a 100644
--- a/clang/lib/Sema/SemaSYCL.cpp
+++ b/clang/lib/Sema/SemaSYCL.cpp
@@ -35,7 +35,7 @@ Sema::SemaDiagnosticBuilder Sema::SYCLDiagIfDeviceCode(SourceLocation Loc,
static bool isZeroSizedArray(Sema &SemaRef, QualType Ty) {
if (const auto *CAT = SemaRef.getASTContext().getAsConstantArrayType(Ty))
- return CAT->getSize() == 0;
+ return CAT->isZeroSize();
return false;
}