mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 19:02:35 +00:00
Correct the implelmentation of ConstantInt::getAllOnesValue() for bit
widths > 64 bits. llvm-svn: 34663
This commit is contained in:
parent
1e498b04f5
commit
74764708fa
@ -118,7 +118,7 @@ ConstantInt *ConstantInt::getAllOnesValue(const Type *Ty) {
|
||||
if (ITy->getBitWidth() == 1)
|
||||
return ConstantInt::getTrue();
|
||||
else
|
||||
return ConstantInt::get(Ty, int64_t(-1));
|
||||
return ConstantInt::get(Ty, APInt::getAllOnesValue(ITy->getBitWidth()));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user