llvm.org GIT mirror llvm / bfbfcda
Fix bug spotted by Chris. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40725 91177308-0d34-0410-b5e6-96231b3b80d8 Anders Carlsson 13 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
8484
8585 APSInt& extend(uint32_t width) {
8686 if (IsUnsigned)
87 *this = zext(width);
87 zext(width);
8888 else
89 *this = sext(width);
89 sext(width);
9090 return *this;
9191 }
9292
9393 APSInt& extOrTrunc(uint32_t width) {
9494 if (IsUnsigned)
95 *this = zextOrTrunc(width);
95 zextOrTrunc(width);
9696 else
97 *this = sextOrTrunc(width);
97 sextOrTrunc(width);
9898 return *this;
9999 }
100100