Write => in a more normal form.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Dec 2010 01:07:22 +0000 (01:07 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Dec 2010 01:07:22 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122009 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCExpr.cpp

index 5d2c7070685a3fb136790819260d6cb7e20594d7..f7ed35374e4a6456e0c5804998c683c93dd2f1e6 100644 (file)
@@ -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();