[PATCH] D124211: Add __builtin_call_kcfi_unchecked
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 28 11:33:02 PDT 2022
nickdesaulniers added inline comments.
================
Comment at: clang/lib/Sema/SemaChecking.cpp:436
+
+ auto Call = dyn_cast_or_null<CallExpr>(BuiltinCall->getArg(0));
+
----------------
nickdesaulniers wrote:
> `auto *Call =`
> https://llvm.org/docs/CodingStandards.html#beware-unnecessary-copies-with-auto
Also, can this simply be a `dyn_cast` rather than `dyn_cast_or_null`? Don't you already check the arg count above?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124211/new/
https://reviews.llvm.org/D124211
More information about the cfe-commits
mailing list