[Hexagon] Remove redundant local variable.

Identified by the Clang static analyzer.

llvm-svn: 253660
This commit is contained in:
Tilmann Scheller 2015-11-20 12:10:17 +00:00
parent 1a26ff7d17
commit bfd7ce01ea
1 changed files with 2 additions and 4 deletions

View File

@ -405,10 +405,8 @@ unsigned HexagonMCCodeEmitter::getExprOpValue(const MCInst &MI,
return cast<MCConstantExpr>(ME)->getValue();
}
if (MK == MCExpr::Binary) {
unsigned Res;
Res = getExprOpValue(MI, MO, cast<MCBinaryExpr>(ME)->getLHS(), Fixups, STI);
Res +=
getExprOpValue(MI, MO, cast<MCBinaryExpr>(ME)->getRHS(), Fixups, STI);
getExprOpValue(MI, MO, cast<MCBinaryExpr>(ME)->getLHS(), Fixups, STI);
getExprOpValue(MI, MO, cast<MCBinaryExpr>(ME)->getRHS(), Fixups, STI);
return 0;
}