Fix bug spotted by Chris.

llvm-svn: 40725
This commit is contained in:
Anders Carlsson 2007-08-02 06:05:19 +00:00
parent cac9c624a1
commit af8908451e
1 changed files with 4 additions and 4 deletions

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