[llvm-branch-commits] [llvm-branch] r202020 - fix some glaring bugs
Gabor Greif
ggreif at gmail.com
Mon Feb 24 02:47:34 PST 2014
Author: ggreif
Date: Mon Feb 24 04:47:34 2014
New Revision: 202020
URL: http://llvm.org/viewvc/llvm-project?rev=202020&view=rev
Log:
fix some glaring bugs
Modified:
llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp
Modified: llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp?rev=202020&r1=202019&r2=202020&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp Mon Feb 24 04:47:34 2014
@@ -176,7 +176,7 @@ Use *Use::initTags<8>(Use * const Start,
TAG_AT(12, zeroZeroDigit) | TAG_AT(13, oneOneDigit) | TAG_AT(14, stop) |
TAG_AT(15, skipStop) | TAG_AT(16, skip2Stop);
# undef TAG_AT
- new(Stop) Use(Tag_t((tags >> Done++ * 2) & 0x3));
+ new(Stop) Use(Tag_t((tags >> Done++ * 3) & 0x7));
}
ptrdiff_t Count = Done;
@@ -198,7 +198,7 @@ Use *Use::initTags<8>(Use * const Start,
Count = Done;
if (Start == Stop) return Start;
} else {
- new(Stop) Use(Tag_t(zeroOneDigitTag3 | (Count & 0x3)));
+ new(Stop) Use(Tag_t(zeroZeroDigitTag3 | (Count & 0x3)));
Count >>= 2;
++Done;
}
More information about the llvm-branch-commits
mailing list