[llvm] 1f44134 - Fix NDEBUG build after instruction ordering

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 18 15:12:44 PST 2020


Author: Reid Kleckner
Date: 2020-02-18T15:12:38-08:00
New Revision: 1f441342433dc39f691ded7821126b8d2a59df88

URL: https://github.com/llvm/llvm-project/commit/1f441342433dc39f691ded7821126b8d2a59df88
DIFF: https://github.com/llvm/llvm-project/commit/1f441342433dc39f691ded7821126b8d2a59df88.diff

LOG: Fix NDEBUG build after instruction ordering

Added: 
    

Modified: 
    llvm/include/llvm/IR/BasicBlock.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/BasicBlock.h b/llvm/include/llvm/IR/BasicBlock.h
index 51150787a986..f04fbd23e964 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


        


More information about the llvm-commits mailing list