[llvm-commits] [llvm] r122009 - /llvm/trunk/lib/MC/MCExpr.cpp
Daniel Dunbar
daniel at zuster.org
Thu Dec 16 17:07:23 PST 2010
Author: ddunbar
Date: Thu Dec 16 19:07:22 2010
New Revision: 122009
URL: http://llvm.org/viewvc/llvm-project?rev=122009&view=rev
Log:
Write => in a more normal form.
Modified:
llvm/trunk/lib/MC/MCExpr.cpp
Modified: llvm/trunk/lib/MC/MCExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCExpr.cpp?rev=122009&r1=122008&r2=122009&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCExpr.cpp (original)
+++ llvm/trunk/lib/MC/MCExpr.cpp Thu Dec 16 19:07:22 2010
@@ -338,7 +338,8 @@
// 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();
More information about the llvm-commits
mailing list