[all-commits] [llvm/llvm-project] 4e7786: [SemaDecl] Use castAs<> instead of getAs<> to avoi...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon Jan 10 08:31:28 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4e77868c7c4ba79ed025b87f84ce66fc8dca25d6
https://github.com/llvm/llvm-project/commit/4e77868c7c4ba79ed025b87f84ce66fc8dca25d6
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
Log Message:
-----------
[SemaDecl] Use castAs<> instead of getAs<> to avoid dereference of nullptr
This will assert the cast is correct instead of returning nullptr
More information about the All-commits
mailing list