diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-01-11 11:12:12 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-01-11 11:29:38 +0000 |
commit | fba8ad2b719c14e971dfe16458b3d18c08e0e40d (patch) | |
tree | 6c589cb95def1761722e67054195f94d927945a0 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 3946095b881366c2f01ebafd18b689337a43aa02 (diff) | |
download | llvm-fba8ad2b719c14e971dfe16458b3d18c08e0e40d.zip llvm-fba8ad2b719c14e971dfe16458b3d18c08e0e40d.tar.gz llvm-fba8ad2b719c14e971dfe16458b3d18c08e0e40d.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions