From: Tilmann Scheller Date: Fri, 20 Nov 2015 12:10:17 +0000 (+0000) Subject: [Hexagon] Remove redundant local variable. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cf042f85d3ea9a90fb98274f56489d3cba6eb5b9;p=oota-llvm.git [Hexagon] Remove redundant local variable. Identified by the Clang static analyzer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253660 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp index db92b1c16ad..35e490afe41 100644 --- a/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp +++ b/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp @@ -405,10 +405,8 @@ unsigned HexagonMCCodeEmitter::getExprOpValue(const MCInst &MI, return cast(ME)->getValue(); } if (MK == MCExpr::Binary) { - unsigned Res; - Res = getExprOpValue(MI, MO, cast(ME)->getLHS(), Fixups, STI); - Res += - getExprOpValue(MI, MO, cast(ME)->getRHS(), Fixups, STI); + getExprOpValue(MI, MO, cast(ME)->getLHS(), Fixups, STI); + getExprOpValue(MI, MO, cast(ME)->getRHS(), Fixups, STI); return 0; }