diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 06:59:12 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 06:59:12 -0400 |
| commit | ba396cce3cc1ef7101055d5ef65c3d9c549c50d7 (patch) | |
| tree | 29df1d42548b75542a6d33e2462be0e2f96743a9 /source/slang/mangle.cpp | |
| parent | 76db3636418f1667db1c8b0d3b6cfec6c652cc84 (diff) | |
| parent | cc98fd4606222ec1d18878d5e8278dc32910076b (diff) | |
Merge https://github.com/shader-slang/slang
Diffstat (limited to 'source/slang/mangle.cpp')
| -rw-r--r-- | source/slang/mangle.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp index bde4e12c7..69f1f0b75 100644 --- a/source/slang/mangle.cpp +++ b/source/slang/mangle.cpp @@ -275,7 +275,12 @@ namespace Slang emitType(context, GetType(paramDeclRef)); } - emitType(context, GetResultType(callableDeclRef)); + // Don't print result type for an initializer/constructor, + // since it is implicit in the qualified name. + if (!callableDeclRef.As<ConstructorDecl>()) + { + emitType(context, GetResultType(callableDeclRef)); + } } } |
