Skip to content

Commit

Permalink
[SYCL][NFC] Fix static code analysis concerns (#1283)
Browse files Browse the repository at this point in the history
Signed-off-by: Soumi Manna <soumi.manna@intel.com>
  • Loading branch information
smanna12 authored Mar 11, 2020
1 parent 859a94f commit 93001bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ bool Util::matchQualifiedTypeName(const QualType &Ty,

if (!RecTy)
return false; // only classes/structs supported
const auto *Ctx = dyn_cast<DeclContext>(RecTy);
const auto *Ctx = cast<DeclContext>(RecTy);
StringRef Name = "";

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

0 comments on commit 93001bb

Please sign in to comment.