forked from OSchip/llvm-project
[unittest] Fix -Wunused-variable after D94717
This commit is contained in:
parent
50cf0a1d1a
commit
724604901a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue