diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-09 22:37:07 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-09 22:37:07 +0000 |
| commit | 6e046f4291e0a3ca18eae50e93dfac8ea6c66ebb (patch) | |
| tree | 64614ba454c5bc1819ea92e6f59a04ff2f835f27 | |
| parent | e64ffc277c92af0e2b50751142641198ac74a131 (diff) | |
| download | bcm5719-llvm-6e046f4291e0a3ca18eae50e93dfac8ea6c66ebb.tar.gz bcm5719-llvm-6e046f4291e0a3ca18eae50e93dfac8ea6c66ebb.zip | |
Use abs64 instead abs; some platforms don't have a 64-bit abs overload. Noticed by Yonggang Luo!
llvm-svn: 78543
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index 61032e9e7bf..6b2cf701122 100644 --- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -117,7 +117,7 @@ namespace { uint64_t complow = 1 << (63 - at); uint64_t comphigh = 1 << (64 - at); //cerr << x << ":" << complow << ":" << comphigh << "\n"; - if (abs(complow - x) <= abs(comphigh - x)) + if (abs64(complow - x) <= abs64(comphigh - x)) return complow; else return comphigh; |

