1
0
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:
Anders Carlsson 2007-08-02 06:05:19 +00:00
parent 89ea07e724
commit 122059b2e9

View File

@ -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;
}