OSDN Git Service

[AArch64] Silence unused variable warning in opt mode after r311533
authorKrasimir Georgiev <krasimir@google.com>
Wed, 23 Aug 2017 08:40:22 +0000 (08:40 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Wed, 23 Aug 2017 08:40:22 +0000 (08:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311535 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp

index cf6a763..0665740 100644 (file)
@@ -4902,7 +4902,6 @@ bool AArch64TargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
 
   StringRef FPType;
   bool IsLegal = false;
-  const StringRef Msg = "Is legal ";
 
   if (VT == MVT::f64) {
     FPType = "f64";
@@ -4916,14 +4915,14 @@ bool AArch64TargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT) const {
   }
 
   if (IsLegal) {
-    DEBUG(dbgs() << Msg << FPType << " imm value: yes\n");
+    DEBUG(dbgs() << "Is legal " << FPType << " imm value: yes\n");
     return true;
   }
 
   if (!FPType.empty())
-    DEBUG(dbgs() << Msg << FPType << " imm value: no\n");
+    DEBUG(dbgs() << "Is legal " << FPType << " imm value: no\n");
   else
-    DEBUG(dbgs() << Msg << "fp imm: no, unsupported fp type\n");
+    DEBUG(dbgs() << "Is legal " << "fp imm: no, unsupported fp type\n");
 
   return false;
 }