[pkg-d-commits] [ldc] 147/149: Backport fix for typeid(null)
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:37:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.2.0
in repository ldc.
commit caa97929150af6c65a4705d3d63ba7be7cd25145
Author: Martin <noone at nowhere.com>
Date: Fri Apr 7 22:50:21 2017 +0200
Backport fix for typeid(null)
Fixes issue #2062.
This particular issue was fixed upstream by dlang/dmd at 2da39fd.
LDC has been using its own outdated copy in `gen/typinf.cpp`.
In ldc-developers/ldc at fd7c075 from master, I switched to using upstream's
`typinf.d`, so it's fixed already (and we'll benefit from future upstream
fixes).
---
gen/typinf.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gen/typinf.cpp b/gen/typinf.cpp
index 2c56807..c3045d5 100644
--- a/gen/typinf.cpp
+++ b/gen/typinf.cpp
@@ -161,7 +161,7 @@ static bool builtinTypeInfo(Type *t) {
if (t->isTypeBasic() || t->ty == Tclass)
return !t->mod;
#else
- if (t->isTypeBasic()) {
+ if (t->isTypeBasic() || t->ty == Tnull) {
return !t->mod;
}
#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list