From: Jim Grosbach Date: Thu, 16 Sep 2010 17:45:21 +0000 (+0000) Subject: Remove unnecessary by-reference return. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dc01b2e1df93b02bcee8457a91ab66e4110a599a;p=oota-llvm.git Remove unnecessary by-reference return. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114099 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }