[llvm] r311535 - [AArch64] Silence unused variable warning in opt mode after r311533
Krasimir Georgiev via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 23 01:40:22 PDT 2017
Author: krasimir
Date: Wed Aug 23 01:40:22 2017
New Revision: 311535
URL: http://llvm.org/viewvc/llvm-project?rev=311535&view=rev
Log:
[AArch64] Silence unused variable warning in opt mode after r311533
Modified:
llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp?rev=311535&r1=311534&r2=311535&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp Wed Aug 23 01:40:22 2017
@@ -4902,7 +4902,6 @@ bool AArch64TargetLowering::isFPImmLegal
StringRef FPType;
bool IsLegal = false;
- const StringRef Msg = "Is legal ";
if (VT == MVT::f64) {
FPType = "f64";
@@ -4916,14 +4915,14 @@ bool AArch64TargetLowering::isFPImmLegal
}
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;
}
More information about the llvm-commits
mailing list