]> granicus.if.org Git - llvm/commitdiff
[OrderedInst] Add const to constant parameter. NFCI
authorXin Tong <trent.xin.tong@gmail.com>
Thu, 29 Jun 2017 18:04:31 +0000 (18:04 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Thu, 29 Jun 2017 18:04:31 +0000 (18:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306717 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/OrderedInstructions.h

index 64c6bcb68b189c4aa943011b241d9cc9305aa0f8..165d4bdaa6d419532c084446f68393b18fb5a185 100644 (file)
@@ -46,7 +46,7 @@ public:
   /// i.e. If an instruction is deleted or added to the basic block, the user
   /// should call this function to invalidate the OrderedBasicBlock cache for
   /// this basic block.
-  void invalidateBlock(BasicBlock *BB) { OBBMap.erase(BB); }
+  void invalidateBlock(const BasicBlock *BB) { OBBMap.erase(BB); }
 };
 
 } // end namespace llvm