* Hack to support builderDefs expressions.

This commit is contained in:
Eelco Dolstra 2010-04-12 09:50:20 +00:00
parent 4e49002576
commit db90b88e65

View file

@ -918,8 +918,14 @@ bool EvalState::eqValues(Value & v1, Value & v2)
forceValue(v1);
forceValue(v2);
/* !!! Hack to support some old broken code that relies on pointer
equality tests between attribute sets. (Specifically,
builderDefs calls uniqList on a list of attribute sets.) Will
remove this eventually. */
if (&v1 == &v2) return true;
if (v1.type != v2.type) return false;
switch (v1.type) {
case tInt: