projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50cf0a1
)
[unittest] Fix -Wunused-variable after D94717
author
Fangrui Song
<i@maskray.me>
Fri, 7 May 2021 18:42:16 +0000
(11:42 -0700)
committer
Fangrui Song
<i@maskray.me>
Fri, 7 May 2021 18:42:16 +0000
(11:42 -0700)
llvm/unittests/Analysis/LoopInfoTest.cpp
patch
|
blob
|
history
diff --git
a/llvm/unittests/Analysis/LoopInfoTest.cpp
b/llvm/unittests/Analysis/LoopInfoTest.cpp
index
db6484f
..
550458c
100644
(file)
--- a/
llvm/unittests/Analysis/LoopInfoTest.cpp
+++ b/
llvm/unittests/Analysis/LoopInfoTest.cpp
@@
-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);