diff options
author | Jessica Paquette <jpaquette@apple.com> | 2019-01-24 22:51:31 +0000 |
---|---|---|
committer | Jessica Paquette <jpaquette@apple.com> | 2019-01-24 22:51:31 +0000 |
commit | 76c40f827dfd67cad6bfe477071af2a63ee5505e (patch) | |
tree | 3fe8ed6fff813e8efabddecbcab5dbbd8cc577d0 | |
parent | baa5d2e69c156a9d8c5bb33ca76a2f3b4629ea65 (diff) | |
download | bcm5719-llvm-76c40f827dfd67cad6bfe477071af2a63ee5505e.tar.gz bcm5719-llvm-76c40f827dfd67cad6bfe477071af2a63ee5505e.zip |
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
llvm-svn: 352124
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp index f08439c6262..e1536dead10 100644 --- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -485,7 +485,7 @@ static bool selectCopy(MachineInstr &I, const TargetInstrInfo &TII, // 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() || |