From b651a96ef21a1f3e14c5cf5a317f9fe2bb648414 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 19 Nov 2010 04:55:36 +0000 Subject: [PATCH] Add an assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119788 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCAssembler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index a23bab25a4d..9ca8928bcec 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -499,7 +499,9 @@ static void WriteFragmentData(const MCAssembler &Asm, const MCAsmLayout &Layout, // FIXME: It is probably better if we don't call EvaluateAsAbsolute in // here. int64_t Value; - LF.getValue().EvaluateAsAbsolute(Value, &Layout); + bool IsAbs = LF.getValue().EvaluateAsAbsolute(Value, &Layout); + assert(IsAbs); + (void) IsAbs; SmallString<32> Tmp; raw_svector_ostream OSE(Tmp); if (LF.isSigned())