Commit 4309d798 authored by Rui Ueyama's avatar Rui Ueyama
Browse files

Remove redundant casts.

parent f9b6baa0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -809,7 +809,7 @@ Expr ScriptParser::combine(StringRef Op, Expr L, Expr R) {
      if (uint64_t RV = R().getValue())
        return L().getValue() / RV;
      error(Loc + ": division by zero");
      return (uint64_t)0;
      return 0;
    };
  }
  if (Op == "%") {
@@ -818,7 +818,7 @@ Expr ScriptParser::combine(StringRef Op, Expr L, Expr R) {
      if (uint64_t RV = R().getValue())
        return L().getValue() % RV;
      error(Loc + ": modulo by zero");
      return (uint64_t)0;
      return 0;
    };
  }
  if (Op == "<<")