From 66f6d69c85febe32bf4fe48604447c8688b2228c Mon Sep 17 00:00:00 2001 From: Xin Tong Date: Thu, 29 Jun 2017 18:04:31 +0000 Subject: [PATCH] [OrderedInst] Add const to constant parameter. NFCI llvm-svn: 306717 --- llvm/include/llvm/Transforms/Utils/OrderedInstructions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Transforms/Utils/OrderedInstructions.h b/llvm/include/llvm/Transforms/Utils/OrderedInstructions.h index 64c6bcb68b18..165d4bdaa6d4 100644 --- a/llvm/include/llvm/Transforms/Utils/OrderedInstructions.h +++ b/llvm/include/llvm/Transforms/Utils/OrderedInstructions.h @@ -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