Remove redundant casts.

llvm-svn: 326753
This commit is contained in:
Rui Ueyama 2018-03-05 23:50:45 +00:00
parent 9e0c61b901
commit 067617f9ba
1 changed files with 2 additions and 2 deletions

View File

@ -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 == "<<")