Skip to content

Commit 7e37107

Browse files
committed
NFC Remove redundant type
1 parent 36c9067 commit 7e37107

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/StaticAnalyzer/Checkers/ChrootChecker.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,8 @@ void ChrootChecker::checkPreCall(const CallEvent &Call,
171171
if (!Err)
172172
return;
173173

174-
std::unique_ptr<PathSensitiveBugReport> R =
175-
std::make_unique<PathSensitiveBugReport>(
176-
BreakJailBug, R"(No call of chdir("/") immediately after chroot)",
177-
Err);
174+
auto R = std::make_unique<PathSensitiveBugReport>(
175+
BreakJailBug, R"(No call of chdir("/") immediately after chroot)", Err);
178176
R->addVisitor<ChrootInvocationVisitor>(Chroot);
179177
C.emitReport(std::move(R));
180178
}

0 commit comments

Comments
 (0)