From 4566e7a7dd2584ac7cdaf2651f9f01e9b836e18f Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 3 Nov 2009 14:14:27 -0700 Subject: [PATCH] avoid infinite loop in deadWord --- src/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index f6dc25e27a..88402a5e77 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -1008,7 +1008,7 @@ deadWord(Context* c, Value* v) Value* nextWord = v->nextWord; assert(c, nextWord != v); - for (SiteIterator it(c, v); it.hasMore();) { + for (SiteIterator it(c, v, true, false); it.hasMore();) { Site* s = it.next(); if (s->registerSize(c) > BytesPerWord) {