diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-10-20 17:01:00 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-10-20 17:01:00 +0000 |
| commit | f75f2a0a026621430f412d903c489b3fc951dbb3 (patch) | |
| tree | d8bf807fb1660c538c24b0510f8056aa1459b26e /lib/CodeGen | |
| parent | 8317e12cef9b16b948231a20f02b4dd4c3623dfc (diff) | |
don't use llabs with apparently VC++ doesn't have
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23845 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 75f1c18a73..eb0b88df98 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -292,7 +292,7 @@ static ms magic64(int64_t d) { const uint64_t two63 = 9223372036854775808ULL; // 2^63 struct ms mag; - ad = llabs(d); + ad = d >= 0 ? d : -d; t = two63 + ((uint64_t)d >> 63); anc = t - 1 - t%ad; // absolute value of nc p = 63; // initialize p |
