Skip to content

Commit 7c3b658

Browse files
committed
[SYCL][NFC] Fix static code analysis concerns
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
1 parent ba5ffb8 commit 7c3b658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ bool Util::matchQualifiedTypeName(const QualType &Ty,
19051905

19061906
if (!RecTy)
19071907
return false; // only classes/structs supported
1908-
const auto *Ctx = dyn_cast<DeclContext>(RecTy);
1908+
const auto *Ctx = cast<DeclContext>(RecTy);
19091909
StringRef Name = "";
19101910

19111911
for (const auto &Scope : llvm::reverse(Scopes)) {

0 commit comments

Comments
 (0)