[llvm] r352124 - Suppress unused capture warning in CheckCopy
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 24 14:51:31 PST 2019
Author: paquette
Date: Thu Jan 24 14:51:31 2019
New Revision: 352124
URL: http://llvm.org/viewvc/llvm-project?rev=352124&view=rev
Log:
Suppress unused capture warning in CheckCopy
Werror bots didn't like the lambda + assert thing in my previous commit.
Capture everything to suppress the error.
Example failure here:
http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/29393
Modified:
llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp?rev=352124&r1=352123&r2=352124&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp Thu Jan 24 14:51:31 2019
@@ -485,7 +485,7 @@ static bool selectCopy(MachineInstr &I,
// Returns true, or asserts if something we don't expect happens. Instead of
// returning true, we return isValidCopy() to ensure that we verify the
// result.
- auto CheckCopy = [&I, &DstRegBank, &MRI, &TRI, &RBI, &KnownValid]() {
+ auto CheckCopy = [&]() {
// If we have a bitcast or something, we can't have physical registers.
assert(
I.isCopy() ||
More information about the llvm-commits
mailing list