diff --git a/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp b/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp index 9eac91a79206..a1dc7f7a5c35 100644 --- a/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp +++ b/llvm/lib/Target/PowerPC/PPCVSXSwapRemoval.cpp @@ -761,6 +761,10 @@ void PPCVSXSwapRemoval::dumpSwapVector() { DEBUG(dbgs() << "remove "); DEBUG(dbgs() << "\n"); + + // For no-asserts builds. + (void)MI; + (void)ID; } DEBUG(dbgs() << "\n");