[AArch64] Pacify lld buildbot complaining about an unused static function in release...
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Wed, 10 Sep 2014 14:24:02 +0000 (14:24 +0000)
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Wed, 10 Sep 2014 14:24:02 +0000 (14:24 +0000)
llvm-svn: 217505

llvm/lib/Target/AArch64/AArch64PBQPRegAlloc.cpp

index c4787f4..87e3502 100644 (file)
@@ -37,11 +37,13 @@ using namespace llvm;
 
 namespace {
 
+#ifndef NDEBUG
 bool isFPReg(unsigned reg) {
   return AArch64::FPR32RegClass.contains(reg) ||
          AArch64::FPR64RegClass.contains(reg) ||
          AArch64::FPR128RegClass.contains(reg);
 };
+#endif
 
 bool isOdd(unsigned reg) {
   switch (reg) {