[all-commits] [llvm/llvm-project] ef865d: [clang] AddObjCKeyValueCompletions - use castAs<> ...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Thu Mar 17 09:16:21 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ef865d16ec3b8ce636786ed472ac28c977f2f304
https://github.com/llvm/llvm-project/commit/ef865d16ec3b8ce636786ed472ac28c977f2f304
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-03-17 (Thu, 17 Mar 2022)
Changed paths:
M clang/lib/Sema/SemaCodeComplete.cpp
Log Message:
-----------
[clang] AddObjCKeyValueCompletions - use castAs<> instead of getAs<> to avoid dereference of nullptr
The pointers are always dereferenced, so assert the cast is correct instead of returning nullptr
More information about the All-commits
mailing list