Skip to content

Commit 7246049

Browse files
committed
[unittest] Fix -Wunused-variable after D94717
1 parent 50cf0a1 commit 7246049

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/unittests/Analysis/LoopInfoTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,8 +1534,7 @@ TEST(LoopInfoTest, LoopUserBranch) {
15341534
runWithLoopInfo(*M, "foo", [&](Function &F, LoopInfo &LI) {
15351535
Function::iterator FI = F.begin();
15361536
FI = ++FI;
1537-
BasicBlock *Guard = &*FI;
1538-
assert(Guard->getName() == "guard");
1537+
assert(FI->getName() == "guard");
15391538

15401539
FI = ++FI;
15411540
BasicBlock *Header = &*(++FI);

0 commit comments

Comments
 (0)