From 46e40188f7b0159b3c73341e3dd548382e32e47e 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 --- llvm/lib/MC/MCExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index 3d476086e4ca..cee5673bc072 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/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();