diff options
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCExpr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp index 5d2c707..f7ed353 100644 --- a/lib/MC/MCExpr.cpp +++ b/lib/MC/MCExpr.cpp @@ -338,7 +338,8 @@ static bool EvaluateSymbolicAdd(const MCAssembler *Asm, // Absolutize symbol differences between defined symbols when we have a // layout object and the target requests it. - assert(!(Layout && !Asm)); + assert((!Layout || Asm) && + "Must have an assembler object if layout is given!"); if (Asm && A && B) { const MCSymbol &SA = A->getSymbol(); |