[llvm] r306717 - [OrderedInst] Add const to constant parameter. NFCI

Xin Tong via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 29 11:04:32 PDT 2017


Author: trentxintong
Date: Thu Jun 29 11:04:31 2017
New Revision: 306717

URL: http://llvm.org/viewvc/llvm-project?rev=306717&view=rev
Log:
[OrderedInst] Add const to constant parameter. NFCI

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/OrderedInstructions.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/OrderedInstructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/OrderedInstructions.h?rev=306717&r1=306716&r2=306717&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/OrderedInstructions.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/OrderedInstructions.h Thu Jun 29 11:04:31 2017
@@ -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




More information about the llvm-commits mailing list