Skip to content

Commit 73ff017

Browse files
[Sema] Fix a warning
This patch fixes: clang/lib/Sema/AnalysisBasedWarnings.cpp:2269:21: error: unused variable 'subExpr' [-Werror,-Wunused-variable]
1 parent d83a3ea commit 73ff017

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
@@ -2266,8 +2266,6 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler {
22662266
if (!isa<PointerType>(destType))
22672267
return;
22682268

2269-
const Expr *subExpr = ECE->getSubExpr();
2270-
22712269
const uint64_t dSize =
22722270
Ctx.getTypeSize(destType.getTypePtr()->getPointeeType());
22732271

0 commit comments

Comments
 (0)