Add an assert.

llvm-svn: 119788
This commit is contained in:
Rafael Espindola 2010-11-19 04:55:36 +00:00
parent 345945e355
commit 0b4c9aa9a9
1 changed files with 3 additions and 1 deletions

View File

@ -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())