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; }