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:
abdff2b
)
Add a missing 'else'. Found by grep '} if'
author
Dmitri Gribenko
<gribozavr@gmail.com>
Wed, 19 Dec 2012 22:13:01 +0000
(22:13 +0000)
committer
Dmitri Gribenko
<gribozavr@gmail.com>
Wed, 19 Dec 2012 22:13:01 +0000
(22:13 +0000)
No testcase because it is apparently not so trivial to construct.
llvm-svn: 170595
llvm/lib/CodeGen/MachineVerifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/MachineVerifier.cpp
b/llvm/lib/CodeGen/MachineVerifier.cpp
index 590c20aa05f5e80cf111d0d4b5aa7c983781c24b..7241bb9c2059664d84c2be00396801f751efc47a 100644
(file)
--- a/
llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/
llvm/lib/CodeGen/MachineVerifier.cpp
@@
-597,7
+597,7
@@
MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
++MBBI;
if (MBBI == MF->end()) {
report("MBB conditionally falls through out of function!", MBB);
- } if (MBB->succ_size() == 1) {
+ }
else
if (MBB->succ_size() == 1) {
// A conditional branch with only one successor is weird, but allowed.
if (&*MBBI != TBB)
report("MBB exits via conditional branch/fall-through but only has "