diff options
| author | Davide Italiano <davide@freebsd.org> | 2015-09-11 22:04:21 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2015-09-11 22:04:21 +0000 |
| commit | 983366ab12d0d46cbeeba2e8e2c3f299bcf49ac7 (patch) | |
| tree | 3590bcc212e0226f24566fb98627b412c905e2c0 /llvm/lib/MC | |
| parent | 9c52b28003cd77b09939319374b7515760ca5956 (diff) | |
| download | bcm5719-llvm-983366ab12d0d46cbeeba2e8e2c3f299bcf49ac7.tar.gz bcm5719-llvm-983366ab12d0d46cbeeba2e8e2c3f299bcf49ac7.zip | |
[MC] Fix style bugs introduced in r247471. Reported by Rafael Espindola.
llvm-svn: 247483
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp index 90cd7fa07b1..042fd1c72a2 100644 --- a/llvm/lib/MC/MCExpr.cpp +++ b/llvm/lib/MC/MCExpr.cpp @@ -739,7 +739,7 @@ bool MCExpr::evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm, 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(MCValue &Res, const MCAssembler *Asm, // 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; |

