[Hexagon] Remove redundant local variable.
authorTilmann Scheller <t.scheller@samsung.com>
Fri, 20 Nov 2015 12:10:17 +0000 (12:10 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Fri, 20 Nov 2015 12:10:17 +0000 (12:10 +0000)
Identified by the Clang static analyzer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253660 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp

index db92b1c16ad43c03d047981c2337f2d71b1d89e2..35e490afe41fc81d4f313d6083ca23795c382776 100644 (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;
   }