mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-12 18:02:43 +00:00
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
This commit is contained in:
parent
baa5d2e69c
commit
76c40f827d
@ -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() ||
|
||||
|
Loading…
Reference in New Issue
Block a user