[llvm] r220200 - Remove unnecessary else.
Sid Manning
sidneym at codeaurora.org
Mon Oct 20 06:08:20 PDT 2014
Author: sidneym
Date: Mon Oct 20 08:08:19 2014
New Revision: 220200
URL: http://llvm.org/viewvc/llvm-project?rev=220200&view=rev
Log:
Remove unnecessary else.
Modified:
llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
Modified: llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp?rev=220200&r1=220199&r2=220200&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/InstPrinter/HexagonInstPrinter.cpp Mon Oct 20 08:08:19 2014
@@ -39,8 +39,8 @@ static int getMinValue(uint64_t TSFlags)
if (isSigned)
return -1U << (bits - 1);
- else
- return 0;
+
+ return 0;
}
// Return the maximum value that a constant extendable operand can have
@@ -53,8 +53,8 @@ static int getMaxValue(uint64_t TSFlags)
if (isSigned)
return ~(-1U << (bits - 1));
- else
- return ~(-1U << bits);
+
+ return ~(-1U << bits);
}
// Return true if the instruction must be extended.
More information about the llvm-commits
mailing list