mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-10 17:03:13 +01:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user