[llvm] r340581 - [IDF] Make GraphDiff a const constructor argument.

Alina Sbirlea via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 23 14:56:30 PDT 2018


Author: asbirlea
Date: Thu Aug 23 14:56:30 2018
New Revision: 340581

URL: http://llvm.org/viewvc/llvm-project?rev=340581&view=rev
Log:
[IDF] Make GraphDiff a const constructor argument.

Modified:
    llvm/trunk/include/llvm/Analysis/IteratedDominanceFrontier.h

Modified: llvm/trunk/include/llvm/Analysis/IteratedDominanceFrontier.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/IteratedDominanceFrontier.h?rev=340581&r1=340580&r2=340581&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/IteratedDominanceFrontier.h (original)
+++ llvm/trunk/include/llvm/Analysis/IteratedDominanceFrontier.h Thu Aug 23 14:56:30 2018
@@ -50,7 +50,7 @@ class IDFCalculator {
        : DT(DT), GD(nullptr), useLiveIn(false) {}
 
    IDFCalculator(DominatorTreeBase<BasicBlock, IsPostDom> &DT,
-                 GraphDiff<BasicBlock *, IsPostDom> *GD)
+                 const GraphDiff<BasicBlock *, IsPostDom> *GD)
        : DT(DT), GD(GD), useLiveIn(false) {}
 
    /// Give the IDF calculator the set of blocks in which the value is




More information about the llvm-commits mailing list