From bf001eed4c85b9180c8ffc7d71e84fcd76cf40c1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 6 Dec 2010 03:36:43 +0000 Subject: [PATCH] Simplify a bit. llvm-svn: 120980 --- lib/MC/MCExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp index 3d476086e4c..cee5673bc07 100644 --- a/lib/MC/MCExpr.cpp +++ b/lib/MC/MCExpr.cpp @@ -313,7 +313,7 @@ static bool EvaluateSymbolicAdd(const MCAsmLayout *Layout, assert(!(Layout && !Asm)); - if ((Layout || Asm) && A && B) { + if (Asm && A && B) { const MCSymbol &SA = A->getSymbol(); const MCSymbol &SB = B->getSymbol(); const MCObjectFormat &F = Asm->getBackend().getObjectFormat();