diff --git a/dmd/mars.c b/dmd/mars.c index a4c5c2ec..53beb484 100644 --- a/dmd/mars.c +++ b/dmd/mars.c @@ -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++) diff --git a/gen/toir.cpp b/gen/toir.cpp index 6d7a0002..16930480 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -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; diff --git a/tangotests/stdout1.d b/tangotests/stdout1.d index aff18520..a5bab25e 100644 --- a/tangotests/stdout1.d +++ b/tangotests/stdout1.d @@ -3,4 +3,5 @@ import tango.io.Stdout; void main() { Stdout("Hello World").newline; + Stdout.formatln("{} {}", "Hello", "World"); }