[llvm] e0dbeb2 - Fix buildbot after 9f31446c
Jessica Paquette via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 15:22:25 PDT 2020
Author: Jessica Paquette
Date: 2020-04-28T15:19:17-07:00
New Revision: e0dbeb21739c220b91b3b848a8b73ee6d86b71aa
URL: https://github.com/llvm/llvm-project/commit/e0dbeb21739c220b91b3b848a8b73ee6d86b71aa
DIFF: https://github.com/llvm/llvm-project/commit/e0dbeb21739c220b91b3b848a8b73ee6d86b71aa.diff
LOG: Fix buildbot after 9f31446c
Add missing ifndef to make release builds happy.
Example failure: http://lab.llvm.org:8011/builders/fuchsia-x86_64-linux/builds/4006/steps/ninja-build/logs/stdio
Added:
Modified:
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
index e29c97f5cf88..d7334f627f6c 100644
--- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
@@ -768,8 +768,11 @@ static bool selectCopy(MachineInstr &I, const TargetInstrInfo &TII,
(!Register::isPhysicalRegister(I.getOperand(0).getReg()) &&
!Register::isPhysicalRegister(I.getOperand(1).getReg()))) &&
"No phys reg on generic operator!");
- bool ValidCopy = KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI);
+ bool ValidCopy = true;
+#ifndef NDEBUG
+ ValidCopy = KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI);
assert(ValidCopy && "Invalid copy.");
+#endif
return ValidCopy;
};
More information about the llvm-commits
mailing list