aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-21 22:42:49 +0000
committerChris Lattner <sabre@nondot.org>2002-01-21 22:42:49 +0000
commit7012bcd61b249c87f027d97747f51a1c86cc96d0 (patch)
tree78d62afed6a2b929663baaf4923cb0bc824f1323
parentc0c60a99d04c827b7f192e3a4fd16a4002784f89 (diff)
Fix for problem that caused both HUGE and INVALID latencies to be negative
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1513 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetSchedInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetSchedInfo.h b/include/llvm/Target/TargetSchedInfo.h
index e8908c532a..aea0357e20 100644
--- a/include/llvm/Target/TargetSchedInfo.h
+++ b/include/llvm/Target/TargetSchedInfo.h
@@ -11,7 +11,7 @@
#include <ext/hash_map>
typedef long long cycles_t;
-const cycles_t HUGE_LATENCY = ~((unsigned long long) 1 << sizeof(cycles_t)-2);
+const cycles_t HUGE_LATENCY = ~((long long) 1 << (sizeof(cycles_t)-2));
const cycles_t INVALID_LATENCY = -HUGE_LATENCY;
static const unsigned MAX_OPCODE_SIZE = 16;