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:
5d2529f
)
[CFGPrinter] Use succ_empty (NFC)
author
Kazu Hirata
<kazu@google.com>
Tue, 29 Dec 2020 03:55:20 +0000
(19:55 -0800)
committer
Kazu Hirata
<kazu@google.com>
Tue, 29 Dec 2020 03:55:20 +0000
(19:55 -0800)
llvm/lib/Analysis/CFGPrinter.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/CFGPrinter.cpp
b/llvm/lib/Analysis/CFGPrinter.cpp
index
582e61b
..
d41b0f8
100644
(file)
--- a/
llvm/lib/Analysis/CFGPrinter.cpp
+++ b/
llvm/lib/Analysis/CFGPrinter.cpp
@@
-272,7
+272,7
@@
FunctionPass *llvm::createCFGOnlyPrinterLegacyPassPass() {
void DOTGraphTraits<DOTFuncInfo *>::computeHiddenNodes(const Function *F) {
auto evaluateBB = [&](const BasicBlock *Node) {
- if (succ_
begin(Node) == succ_end
(Node)) {
+ if (succ_
empty
(Node)) {
const Instruction *TI = Node->getTerminator();
isHiddenBasicBlock[Node] =
(HideUnreachablePaths && isa<UnreachableInst>(TI)) ||