diff options
| author | Yong He <yonghe@outlook.com> | 2017-11-04 16:15:15 -0400 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2017-11-04 16:15:15 -0400 |
| commit | 8d19b2b4443101040acaf7d9dce2a7a6affea712 (patch) | |
| tree | 361c9cd72efd6c31b23360ed235d3f7bbba00177 /source/slang/mangle.cpp | |
| parent | 288841f66c808af70ad7687f9704c87075129b18 (diff) | |
| parent | cc98fd4606222ec1d18878d5e8278dc32910076b (diff) | |
Merge branch 'master' of 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 ed17a7ffa..a690e5b74 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)); + } } } |
