[llvm] e897fee - [PPC] Silence unused variable warning in release builds. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 12:43:50 PST 2021
Author: Benjamin Kramer
Date: 2021-03-04T21:43:19+01:00
New Revision: e897feeb8a6b85439f29ed88dadef5469eb910d7
URL: https://github.com/llvm/llvm-project/commit/e897feeb8a6b85439f29ed88dadef5469eb910d7
DIFF: https://github.com/llvm/llvm-project/commit/e897feeb8a6b85439f29ed88dadef5469eb910d7.diff
LOG: [PPC] Silence unused variable warning in release builds. NFC.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 8b01d772285f..460ddd24490e 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -6709,6 +6709,7 @@ SDValue PPCTargetLowering::LowerFormalArguments_AIX(
// ValNo of the custom MemLoc, so we can compare it to the ValNo of the
// matching custom RegLocs.
const unsigned OriginalValNo = VA.getValNo();
+ (void)OriginalValNo;
auto HandleCustomVecRegLoc = [&]() {
assert(I != End && ArgLocs[I].isRegLoc() && ArgLocs[I].needsCustom() &&
More information about the llvm-commits
mailing list