[llvm-commits] [llvm] r54574 - /llvm/trunk/lib/CodeGen/OcamlCollector.cpp
Gordon Henriksen
gordonhenriksen at mac.com
Fri Aug 8 20:48:47 PDT 2008
Author: gordon
Date: Fri Aug 8 22:48:46 2008
New Revision: 54574
URL: http://llvm.org/viewvc/llvm-project?rev=54574&view=rev
Log:
Fix some typos. Apparently I think C needs a power-of operator.
Modified:
llvm/trunk/lib/CodeGen/OcamlCollector.cpp
Modified: llvm/trunk/lib/CodeGen/OcamlCollector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/OcamlCollector.cpp?rev=54574&r1=54573&r2=54574&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/OcamlCollector.cpp (original)
+++ llvm/trunk/lib/CodeGen/OcamlCollector.cpp Fri Aug 8 22:48:46 2008
@@ -129,7 +129,7 @@
PE = MD.end(); PI != PE; ++PI) {
uint64_t FrameSize = MD.getFrameSize();
- if (FrameSize >= 2<<16) {
+ if (FrameSize >= 1<<16) {
cerr << "Function '" << MD.getFunction().getNameStart()
<< "' is too large for the ocaml collector! "
<< "Frame size " << FrameSize << " >= 65536.\n";
@@ -137,7 +137,7 @@
}
size_t LiveCount = MD.live_size(PI);
- if (LiveCount >= 2<<16) {
+ if (LiveCount >= 1<<16) {
cerr << "Function '" << MD.getFunction().getNameStart()
<< "' is too large for the ocaml collector! "
<< "Live root count " << LiveCount << " >= 65536.\n";
@@ -157,7 +157,7 @@
for (CollectorMetadata::live_iterator LI = MD.live_begin(PI),
LE = MD.live_end(PI);
LI != LE; ++LI) {
- assert(LI->StackOffset < 2<<16 &&
+ assert(LI->StackOffset < 1<<16 &&
"GC root stack offset is outside of fixed stack frame and out "
"of range for Ocaml collector!");
More information about the llvm-commits
mailing list