[all-commits] [llvm/llvm-project] fba8ad: [SemaTemplateInstantiate] Use cast<> instead of dy...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Jan 11 03:30:07 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fba8ad2b719c14e971dfe16458b3d18c08e0e40d
https://github.com/llvm/llvm-project/commit/fba8ad2b719c14e971dfe16458b3d18c08e0e40d
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M clang/lib/Sema/SemaTemplateInstantiate.cpp
Log Message:
-----------
[SemaTemplateInstantiate] Use cast<> instead of dyn_cast<> to avoid dereference of nullptr
The pointer is always dereferenced immediately below, so assert the cast is correct instead of returning nullptr
More information about the All-commits
mailing list