diff --git a/llvm/include/llvm/IR/BasicBlock.h b/llvm/include/llvm/IR/BasicBlock.h index 51150787a9868..f04fbd23e964d 100644 --- a/llvm/include/llvm/IR/BasicBlock.h +++ b/llvm/include/llvm/IR/BasicBlock.h @@ -513,7 +513,7 @@ BasicBlock::iterator skipDebugIntrinsics(BasicBlock::iterator It); #ifdef NDEBUG /// In release builds, this is a no-op. For !NDEBUG builds, the checks are /// implemented in the .cpp file to avoid circular header deps. -inline void Instruction::validateInstrOrdering() const {} +inline void BasicBlock::validateInstrOrdering() const {} #endif } // end namespace llvm