aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/OcamlCollector.cpp
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-08-09 03:48:46 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-08-09 03:48:46 +0000
commit08db7367b1d498f13c581c143802e7d4cf32c403 (patch)
tree05b00cfd126800de01e590f3d982d8b840b17ff1 /lib/CodeGen/OcamlCollector.cpp
parentf068263cbc523a3d80f08735d92b347680707aa0 (diff)
Fix some typos. Apparently I think C needs a power-of operator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54574 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/OcamlCollector.cpp')
-rw-r--r--lib/CodeGen/OcamlCollector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/OcamlCollector.cpp b/lib/CodeGen/OcamlCollector.cpp
index 6b947b1050..9823d24986 100644
--- a/lib/CodeGen/OcamlCollector.cpp
+++ b/lib/CodeGen/OcamlCollector.cpp
@@ -129,7 +129,7 @@ void OcamlCollector::finishAssembly(std::ostream &OS, AsmPrinter &AP,
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 @@ void OcamlCollector::finishAssembly(std::ostream &OS, AsmPrinter &AP,
}
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 @@ void OcamlCollector::finishAssembly(std::ostream &OS, AsmPrinter &AP,
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!");