From f3faf92636a7da01d3cfff1e969988b5fff795eb Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 6 Dec 2010 03:36:43 +0000 Subject: [PATCH] Simplify a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120980 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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(); -- 2.34.1