summaryrefslogtreecommitdiffstats
path: root/source/slang/emit.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-10 15:02:47 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-10 15:02:47 -0700
commitf8c69050b08c19b269edf2a8cf246f9724a8fef7 (patch)
treedce3b16e851f9932a4091200c949fb0bad1c339b /source/slang/emit.cpp
parentd24eaa5f035e23a49ce71daaee951d8e24c56a99 (diff)
Handle function name properly for unchecked call
The emit logic was checking for a missing decl, and then asking that same (missing) declaration for its name.
Diffstat (limited to 'source/slang/emit.cpp')
-rw-r--r--source/slang/emit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/emit.cpp b/source/slang/emit.cpp
index 05503265a..b2366f564 100644
--- a/source/slang/emit.cpp
+++ b/source/slang/emit.cpp
@@ -1598,7 +1598,7 @@ struct EmitVisitor
auto funcDecl = funcDeclRef.getDecl();
if(!funcDecl)
{
- emitUncheckedCallExpr(callExpr, funcDeclRef.GetName(), arg);
+ emitUncheckedCallExpr(callExpr, funcDeclRefExpr->name, arg);
return;
}
else if (auto intrinsicOpModifier = funcDecl->FindModifier<IntrinsicOpModifier>())