summaryrefslogtreecommitdiff
path: root/source/slang/lower-to-ir.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-11-13 18:22:03 -0500
committerYong He <yonghe@outlook.com>2017-11-13 18:22:34 -0500
commit57f737dc5111b75e2c9591b83eacd2219ea67d07 (patch)
treef780b966a0d188c6e0f85422acd0afb22a9ff4dc /source/slang/lower-to-ir.cpp
parentc9d94248dc73fe41c344b0a23230e597f7b94a2c (diff)
Legalization of function parameter types.
This commit addresses issue #275 This commit includes following changes: 1. legalize function parameter IRParam instructions 2. legalize function parameter types in IRFuncType 3. legalize call sites (IRCall) with proper arguments 4. legalize local vars that has a mixed resource type.
Diffstat (limited to 'source/slang/lower-to-ir.cpp')
-rw-r--r--source/slang/lower-to-ir.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp
index bbbc1812b..759c386cd 100644
--- a/source/slang/lower-to-ir.cpp
+++ b/source/slang/lower-to-ir.cpp
@@ -2850,7 +2850,6 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo>
IRType* irParamType = irResultType;
paramTypes.Add(irParamType);
subBuilder->emitParam(irParamType);
-
// TODO: we need some way to wire this up to the `newValue`
// or whatever name we give for that parameter inside
// the setter body.