[llvm] r247483 - [MC] Fix style bugs introduced in r247471. Reported by Rafael Espindola.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 15:04:22 PDT 2015


Author: davide
Date: Fri Sep 11 17:04:21 2015
New Revision: 247483

URL: http://llvm.org/viewvc/llvm-project?rev=247483&view=rev
Log:
[MC] Fix style bugs introduced in r247471. Reported by Rafael Espindola.

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=247483&r1=247482&r2=247483&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCExpr.cpp (original)
+++ llvm/trunk/lib/MC/MCExpr.cpp Fri Sep 11 17:04:21 2015
@@ -739,7 +739,7 @@ bool MCExpr::evaluateAsRelocatableImpl(M
     case MCBinaryExpr::AShr: Result = LHS >> RHS; break;
     case MCBinaryExpr::Add:  Result = LHS + RHS; break;
     case MCBinaryExpr::And:  Result = LHS & RHS; break;
-    case MCBinaryExpr::Div: {
+    case MCBinaryExpr::Div:
       // Handle division by zero. gas just emits a warning and keeps going,
       // we try to be stricter.
       // FIXME: Currently the caller of this function has no way to understand
@@ -748,8 +748,8 @@ bool MCExpr::evaluateAsRelocatableImpl(M
       // change this code to emit a better diagnostic.
       if (RHS == 0)
         return false;
-      Result = LHS / RHS; break;
-    }
+      Result = LHS / RHS;
+      break;
     case MCBinaryExpr::EQ:   Result = LHS == RHS; break;
     case MCBinaryExpr::GT:   Result = LHS > RHS; break;
     case MCBinaryExpr::GTE:  Result = LHS >= RHS; break;




More information about the llvm-commits mailing list