summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/APInt.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index f4190eb805d..e34d0f34674 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/lib/Support/APInt.cpp
@@ -2819,10 +2819,7 @@ int APInt::tcCompare(const integerPart *lhs, const integerPart *rhs,
if (lhs[parts] == rhs[parts])
continue;
- if (lhs[parts] > rhs[parts])
- return 1;
- else
- return -1;
+ return (lhs[parts] > rhs[parts]) ? 1 : -1;
}
return 0;
OpenPOWER on IntegriCloud