[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 06:55:31 PST 2025


================
@@ -2672,7 +3053,7 @@ static inline std::optional<FixItList> createDataFixit(const ASTContext &Ctx,
 // `DRE.data()`
 std::optional<FixItList>
 UPCStandalonePointerGadget::getFixits(const FixitStrategy &S) const {
-  const auto VD = cast<VarDecl>(Node->getDecl());
----------------
ilya-biryukov wrote:

NIT: we do not need this change, let's keep it out to keep the diff smaller.

https://github.com/llvm/llvm-project/pull/125492


More information about the cfe-commits mailing list