1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[unittest] Fix -Wunused-variable after D94717

This commit is contained in:
Fangrui Song 2021-05-07 11:42:16 -07:00
parent fd58086fcb
commit e03ea6bfdf

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);