GenVector: it's likely the callers passed a proper Vector of WaitHandles

Esse commit está contido em:
bill fumerola
2013-06-10 11:20:52 -07:00
commit de Sara Golemon
commit 4049e79f18
@@ -71,7 +71,7 @@ Object c_GenVectorWaitHandle::ti_create(CVarRef dependencies) {
for (int64_t iter_pos = 0; iter_pos < deps->size(); ++iter_pos) {
TypedValue* current = deps->at(iter_pos);
if (!c_WaitHandle::fromTypedValue(current)) {
if (UNLIKELY(!c_WaitHandle::fromTypedValue(current))) {
Object e(SystemLib::AllocInvalidArgumentExceptionObject(
"Expected dependencies to be a vector of WaitHandle instances"));
throw e;