[llvm] b30880e - [SandboxIR] Fix linking error caused by 840da2e8ba7e0f77938adfc6f6d315137542a1b8

Vasileios Porpodas via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 11:26:35 PDT 2024


Author: Vasileios Porpodas
Date: 2024-09-04T11:25:40-07:00
New Revision: b30880e975279c1c8ef4c2645eb03063e4b19f2b

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

LOG: [SandboxIR] Fix linking error caused by 840da2e8ba7e0f77938adfc6f6d315137542a1b8

Added: 
    

Modified: 
    llvm/lib/SandboxIR/Tracker.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/SandboxIR/Tracker.cpp b/llvm/lib/SandboxIR/Tracker.cpp
index c6eb9fc68a4b11..b1f472d7928f4a 100644
--- a/llvm/lib/SandboxIR/Tracker.cpp
+++ b/llvm/lib/SandboxIR/Tracker.cpp
@@ -251,10 +251,12 @@ void ShuffleVectorSetMask::dump() const {
 CmpSwapOperands::CmpSwapOperands(CmpInst *Cmp) : Cmp(Cmp) {}
 
 void CmpSwapOperands::revert(Tracker &Tracker) { Cmp->swapOperands(); }
+#ifndef NDEBUG
 void CmpSwapOperands::dump() const {
   dump(dbgs());
   dbgs() << "\n";
 }
+#endif
 
 void Tracker::save() { State = TrackerState::Record; }
 


        


More information about the llvm-commits mailing list