[svn r157] Fixed the nasty type==NULL bug :D

This commit is contained in:
Tomas Lindquist Olsen
2008-03-24 20:48:40 +01:00
parent 24392c4903
commit cc914ed4b2
3 changed files with 5 additions and 1 deletions

View File

@@ -990,6 +990,7 @@ int main(int argc, char *argv[])
if (global.errors)
fatal();
#if !IN_LLVM
// Scan for functions to inline
if (global.params.useInline)
{
@@ -1000,6 +1001,7 @@ int main(int argc, char *argv[])
*/
if (!global.params.useArrayBounds && !global.params.useAssert)
{
#endif
// Do pass 3 semantic analysis on all imported modules,
// since otherwise functions in them cannot be inlined
for (i = 0; i < Module::amodules.dim; i++)
@@ -1011,6 +1013,7 @@ int main(int argc, char *argv[])
}
if (global.errors)
fatal();
#if !IN_LLVM
}
for (i = 0; i < modules.dim; i++)
@@ -1023,6 +1026,7 @@ int main(int argc, char *argv[])
}
if (global.errors)
fatal();
#endif
// Generate output files
for (i = 0; i < modules.dim; i++)

View File

@@ -1199,7 +1199,6 @@ DValue* CallExp::toElem(IRState* p)
DValue* CastExp::toElem(IRState* p)
{
assert(type);
Logger::print("CastExp::toElem: %s | %s\n", toChars(), type->toChars());
LOG_SCOPE;

View File

@@ -3,4 +3,5 @@ import tango.io.Stdout;
void main()
{
Stdout("Hello World").newline;
Stdout.formatln("{} {}", "Hello", "World");
}