[svn r188] Fixed using a dereferenced pointer argument as both l- and r-value. fixes tango.io.FileRoots.

Reorganized the tangotests dir a bit.
This commit is contained in:
Tomas Lindquist Olsen
2008-05-06 07:26:27 +02:00
parent d3b57eaf60
commit f716b18cc1
13 changed files with 23 additions and 17 deletions

View File

@@ -52,12 +52,8 @@ llvm::Value* DVarValue::getRVal()
}
else {
if (rval) return rval;
Logger::cout() << "val: " << *val << '\n';
if (isaArgument(val)) {
if (var && (var->isRef() || var->isOut()))
return DtoLoad(val);
}
else if (!isField() && DtoCanLoad(val)) {
//Logger::cout() << "val: " << *val << '\n';
if (!isThis() && !isField() && DtoCanLoad(val)) {
return DtoLoad(val);
}
return val;