[svn r105] -inline does nothing for now, the -On setting can already be used to trigger it.

Fixed a rare bug in AddrExp.
This commit is contained in:
Tomas Lindquist Olsen
2007-11-16 10:01:24 +01:00
parent d1cfe9524c
commit 1c4cfc21ac
3 changed files with 11 additions and 3 deletions

View File

@@ -1468,6 +1468,9 @@ DValue* AddrExp::toElem(IRState* p)
fd->toObjFile();
return new DFuncValue(fd, fd->llvmValue);
}
else if (DImValue* im = v->isIm()) {
return v;
}
return new DFieldValue(type, v->getLVal(), false);
}