From 069f0a62624eabd4f81a0053a5c2460aba35ae8c Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Sat, 30 Apr 2011 15:30:57 +0400 Subject: [PATCH] Merged changes in TypeDArray::builtinTypeInfo() from dmdfe. --- gen/typinf.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gen/typinf.cpp b/gen/typinf.cpp index 853093c9..344c44a7 100644 --- a/gen/typinf.cpp +++ b/gen/typinf.cpp @@ -257,7 +257,9 @@ int TypeBasic::builtinTypeInfo() int TypeDArray::builtinTypeInfo() { #if DMDV2 - return !mod && next->isTypeBasic() != NULL && !next->mod; + return !mod && (next->isTypeBasic() != NULL && !next->mod || + // strings are so common, make them builtin + next->ty == Tchar && next->mod == MODimmutable); #else return next->isTypeBasic() != NULL; #endif