[llvm-branch-commits] [llvm-branch] r109255 - /llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
Gabor Greif
ggreif at gmail.com
Fri Jul 23 12:05:44 PDT 2010
Author: ggreif
Date: Fri Jul 23 14:05:44 2010
New Revision: 109255
URL: http://llvm.org/viewvc/llvm-project?rev=109255&view=rev
Log:
fix off-by one error
Modified:
llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
Modified: llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp?rev=109255&r1=109254&r2=109255&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64/lib/VMCore/Use.cpp Fri Jul 23 14:05:44 2010
@@ -82,8 +82,7 @@
Offset = (Offset << 2) + Tag;
continue;
case xStop64Tag:
- Offset = (Offset << 2) + one64Tag;
- // fall thru...
+ return Current + (Offset << 2) + one64Tag + 1;
default:
return Current + Offset;
}
More information about the llvm-branch-commits
mailing list