[unittest] Fix -Wunused-variable after D94717

This commit is contained in:
Fangrui Song 2021-05-07 11:42:16 -07:00
parent 50cf0a1d1a
commit 724604901a
1 changed files with 1 additions and 2 deletions

View File

@ -1534,8 +1534,7 @@ TEST(LoopInfoTest, LoopUserBranch) {
runWithLoopInfo(*M, "foo", [&](Function &F, LoopInfo &LI) {
Function::iterator FI = F.begin();
FI = ++FI;
BasicBlock *Guard = &*FI;
assert(Guard->getName() == "guard");
assert(FI->getName() == "guard");
FI = ++FI;
BasicBlock *Header = &*(++FI);