mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix bug spotted by Chris.
llvm-svn: 40725
This commit is contained in:
parent
89ea07e724
commit
122059b2e9
@ -85,17 +85,17 @@ public:
|
||||
|
||||
APSInt& extend(uint32_t width) {
|
||||
if (IsUnsigned)
|
||||
*this = zext(width);
|
||||
zext(width);
|
||||
else
|
||||
*this = sext(width);
|
||||
sext(width);
|
||||
return *this;
|
||||
}
|
||||
|
||||
APSInt& extOrTrunc(uint32_t width) {
|
||||
if (IsUnsigned)
|
||||
*this = zextOrTrunc(width);
|
||||
zextOrTrunc(width);
|
||||
else
|
||||
*this = sextOrTrunc(width);
|
||||
sextOrTrunc(width);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user