summaryrefslogtreecommitdiffstats
path: root/source/slang/mangle.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2018-04-18 14:14:26 -0700
committerGitHub <noreply@github.com>2018-04-18 14:14:26 -0700
commitc3a27c0e5a5b36b5a14566394d1694419632b76c (patch)
treec8fb1d39c0b752e7c7a4db63cab4e852eb344560 /source/slang/mangle.cpp
parent0450ca61e27dd0ee0ae744aa98426621627897a1 (diff)
Fix up name mangling/unmangling for extensions (#493)
* Fix up name mangling/unmangling for extensions This is required for the unmangling we do on some builtin function names. The work here is mostly just a band-aid, and a more comprehensive pass over the name mangling/unmangling code is required to make any of this robust. * fixup: UNREACHABLE_RETURN argument
Diffstat (limited to 'source/slang/mangle.cpp')
-rw-r--r--source/slang/mangle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp
index 7a50903a0..d3e2f833f 100644
--- a/source/slang/mangle.cpp
+++ b/source/slang/mangle.cpp
@@ -170,6 +170,7 @@ namespace Slang
// (both types and values) to be mangled in terms of their
// "depth" (how many outer generics) and "index" (which
// parameter are they at the specified depth).
+ emitRaw(context, "K");
emitName(context, genericParamIntVal->declRef.GetName());
}
else if( auto constantIntVal = dynamic_cast<ConstantIntVal*>(val) )