OSDN Git Service

nv50/ir: fix memory value equality check
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 14 Oct 2011 17:49:22 +0000 (19:49 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:38 +0000 (23:00 +0200)
src/gallium/drivers/nv50/codegen/nv50_ir.cpp

index 3cd5038..23fb3bf 100644 (file)
@@ -508,7 +508,7 @@ ImmediateValue::equals(const Value *that, bool strict) const
 bool
 Symbol::equals(const Value *that, bool strict) const
 {
-   if (this->reg.file != that->reg.file)
+   if (reg.file != that->reg.file || reg.fileIndex != that->reg.fileIndex)
       return false;
    assert(that->asSym());