[clang] 73ff017 - [Sema] Fix a warning
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 11:17:27 PST 2024
Author: Kazu Hirata
Date: 2024-01-22T11:17:21-08:00
New Revision: 73ff017c9b39d8a1ecc350f0572e3274dd4c9146
URL: https://github.com/llvm/llvm-project/commit/73ff017c9b39d8a1ecc350f0572e3274dd4c9146
DIFF: https://github.com/llvm/llvm-project/commit/73ff017c9b39d8a1ecc350f0572e3274dd4c9146.diff
LOG: [Sema] Fix a warning
This patch fixes:
clang/lib/Sema/AnalysisBasedWarnings.cpp:2269:21: error: unused
variable 'subExpr' [-Werror,-Wunused-variable]
Added:
Modified:
clang/lib/Sema/AnalysisBasedWarnings.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/AnalysisBasedWarnings.cpp b/clang/lib/Sema/AnalysisBasedWarnings.cpp
index 649c3f533b8206..9e9294572df915 100644
--- a/clang/lib/Sema/AnalysisBasedWarnings.cpp
+++ b/clang/lib/Sema/AnalysisBasedWarnings.cpp
@@ -2266,8 +2266,6 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler {
if (!isa<PointerType>(destType))
return;
- const Expr *subExpr = ECE->getSubExpr();
-
const uint64_t dSize =
Ctx.getTypeSize(destType.getTypePtr()->getPointeeType());
More information about the cfe-commits
mailing list