Skip to content

Commit

Permalink
[Sema] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  clang/lib/Sema/AnalysisBasedWarnings.cpp:2269:21: error: unused
  variable 'subExpr' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Jan 22, 2024
1 parent d83a3ea commit 73ff017
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions clang/lib/Sema/AnalysisBasedWarnings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 73ff017

Please sign in to comment.