mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
make this 64-bit safe
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1329cb8d89
commit
dc97d4cb2f
@ -360,7 +360,7 @@ int IsInf(double d);
|
||||
|
||||
/// MinAlign - A and B are either alignments or offsets. Return the minimum
|
||||
/// alignment that may be assumed after adding the two together.
|
||||
static inline unsigned MinAlign(unsigned A, unsigned B) {
|
||||
static inline uint64_t MinAlign(uint64_t A, uint64_t B) {
|
||||
// The largest power of 2 that divides both A and B.
|
||||
return (A | B) & -(A | B);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user