Add a tvIsPlausible assertion in vectortranslator @override-unit-failures

We were hitting an assertion due to a type error in a vector
translation far downstream.  Assert up here to keep it closer to the
TC.
Esse commit está contido em:
jdelong
2013-04-17 11:54:20 -07:00
commit de Sara Golemon
commit 2e3445bf38
@@ -136,6 +136,7 @@ inline static KeyType getKeyTypeIS(const SSATmp* key) {
template<KeyType kt>
static inline TypedValue* keyPtr(TypedValue& key) {
if (kt == AnyKey) {
assert(tvIsPlausible(&key));
return &key;
} else {
return reinterpret_cast<TypedValue*>(key.m_data.num);