Skip to content

Commit 81626a1

Browse files
kazutakahirataMalavikaSamak
authored andcommitted
[Sema] Fix a warning
This patch fixes: clang/lib/Sema/AnalysisBasedWarnings.cpp:2269:21: error: unused variable 'subExpr' [-Werror,-Wunused-variable] (cherry picked from commit 73ff017)
1 parent 7dbc61d commit 81626a1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

clang/lib/Sema/AnalysisBasedWarnings.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2242,8 +2242,6 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler {
22422242
if (!isa<PointerType>(destType))
22432243
return;
22442244

2245-
const Expr *subExpr = ECE->getSubExpr();
2246-
22472245
const uint64_t dSize =
22482246
Ctx.getTypeSize(destType.getTypePtr()->getPointeeType());
22492247

0 commit comments

Comments
 (0)