Skip to content

Commit 45c84f8

Browse files
committed
[clang][analyzer] Remove unused variable in StreamChecker.cpp (NFC)
llvm-project/clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp:1125:17: error: unused variable 'ASTC' [-Werror,-Wunused-variable] 1125 | ASTContext &ASTC = C.getASTContext(); | ^~~~ 1 error generated.
1 parent ea75542 commit 45c84f8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,6 @@ void StreamChecker::evalGetdelim(const FnDescription *Desc,
11221122
ProgramStateRef StateNotFailed =
11231123
State->BindExpr(CE, C.getLocationContext(), RetVal);
11241124
SValBuilder &SVB = C.getSValBuilder();
1125-
ASTContext &ASTC = C.getASTContext();
11261125
auto Cond =
11271126
SVB.evalBinOp(State, BO_GE, RetVal, SVB.makeZeroVal(CE->getType()),
11281127
SVB.getConditionType())

0 commit comments

Comments
 (0)