summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DomPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Analysis/DomPrinter.cpp')
-rw-r--r--llvm/lib/Analysis/DomPrinter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/DomPrinter.cpp b/llvm/lib/Analysis/DomPrinter.cpp
index 8abc0e7d0df..b1beb72234e 100644
--- a/llvm/lib/Analysis/DomPrinter.cpp
+++ b/llvm/lib/Analysis/DomPrinter.cpp
@@ -38,13 +38,12 @@ struct DOTGraphTraits<DomTreeNode*> : public DefaultDOTGraphTraits {
if (!BB)
return "Post dominance root node";
-
if (isSimple())
- return DOTGraphTraits<const Function*>
- ::getSimpleNodeLabel(BB, BB->getParent());
+ return DOTGraphTraits<CFGDOTInfo*>
+ ::getSimpleNodeLabel(BB, nullptr);
else
- return DOTGraphTraits<const Function*>
- ::getCompleteNodeLabel(BB, BB->getParent());
+ return DOTGraphTraits<CFGDOTInfo*>
+ ::getCompleteNodeLabel(BB, nullptr);
}
};
OpenPOWER on IntegriCloud