mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-26 09:33:13 +01:00
[svn r157] Fixed the nasty type==NULL bug :D
This commit is contained in:
@@ -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++)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -3,4 +3,5 @@ import tango.io.Stdout;
|
||||
void main()
|
||||
{
|
||||
Stdout("Hello World").newline;
|
||||
Stdout.formatln("{} {}", "Hello", "World");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user