From dc01b2e1df93b02bcee8457a91ab66e4110a599a Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Thu, 16 Sep 2010 17:45:21 +0000 Subject: [PATCH] Remove unnecessary by-reference return. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114099 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCInst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 2966f0dea6b..622973ead91 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -75,7 +75,7 @@ public: ImmVal = Val; } - const double &getFPImm() const { + const double getFPImm() const { assert(isFPImm() && "This is not an FP immediate"); return FPImmVal; }