| commit | 3eeba80732a77f09bba146d0d73d495afb31fc41 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Tue Sep 17 23:56:50 2002 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Tue Sep 17 23:56:50 2002 +0000 |
| tree | f7814ea7020292032323ff464c1bb25085112921 | |
| parent | 2d7730e3dd3bf2e71c056b18d8d025cc036ae5d6 [diff] [blame] |
Fix ambiguity problem due to builtin log2(double) function llvm-svn: 3800
diff --git a/llvm/include/Support/MathExtras.h b/llvm/include/Support/MathExtras.h index bd5692b..d907658 100644 --- a/llvm/include/Support/MathExtras.h +++ b/llvm/include/Support/MathExtras.h
@@ -19,7 +19,7 @@ inline bool isPowerOf2(int64_t C, unsigned &getPow) { if (C < 0) C = -C; if (C > 0 && C == (C & ~(C - 1))) { - getPow = log2(C); + getPow = log2((uint64_t)C); return true; }