diff --git a/gen/tollvm.cpp b/gen/tollvm.cpp index 76eae4c4..20fe312a 100644 --- a/gen/tollvm.cpp +++ b/gen/tollvm.cpp @@ -75,6 +75,7 @@ LLType* DtoType(Type* t) } IF_LOG Logger::println("Building type: %s", t->toChars()); + LOG_SCOPE; assert(t); switch (t->ty) diff --git a/ir/irtypestruct.cpp b/ir/irtypestruct.cpp index d49e0cc2..2cd128ed 100644 --- a/ir/irtypestruct.cpp +++ b/ir/irtypestruct.cpp @@ -222,7 +222,7 @@ llvm::Type* IrTypeStruct::buildType() // set struct body isaStruct(type)->setBody(defaultTypes, packed); - IF_LOG Logger::cout() << "final struct type: " << type << std::endl; + IF_LOG Logger::cout() << "final struct type: " << *type << std::endl; return type; }