[PATCH] D87417: [MachineBasicBlock] Fix a typo in function copySuccessor
Guozhi Wei via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 15 09:19:26 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG243ffd0cade7: [MachineBasicBlock] Fix a typo in function copySuccessor (authored by Carrot).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87417/new/
https://reviews.llvm.org/D87417
Files:
llvm/lib/CodeGen/MachineBasicBlock.cpp
Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
===================================================================
--- llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -828,7 +828,7 @@
void MachineBasicBlock::copySuccessor(MachineBasicBlock *Orig,
succ_iterator I) {
- if (Orig->Probs.empty())
+ if (!Orig->Probs.empty())
addSuccessor(*I, Orig->getSuccProbability(I));
else
addSuccessorWithoutProb(*I);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87417.291957.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200915/7577a7ae/attachment.bin>
More information about the llvm-commits
mailing list