summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit-base.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-06-01 22:29:10 -0700
committerGitHub <noreply@github.com>2022-06-01 22:29:10 -0700
commitbc6bc56db51d06b92dc63ef9c9e0def6c9760c9e (patch)
tree55aae1b64e3c0befe4b424764f6f0064701a9ffe /source/slang/slang-emit-base.cpp
parent4f14efc9752d9ebc8538a2e29ed154a00dc99682 (diff)
Clean up void returns. (#2260)
* Clean up `IRReturnVoid`. * Update gitignore. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-base.cpp')
-rw-r--r--source/slang/slang-emit-base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-base.cpp b/source/slang/slang-emit-base.cpp
index 0f1c54e70..d565edb24 100644
--- a/source/slang/slang-emit-base.cpp
+++ b/source/slang/slang-emit-base.cpp
@@ -25,7 +25,7 @@ IRInst* SourceEmitterBase::getSpecializedValue(IRSpecialize* specInst)
if (!lastBlock)
return base;
- auto returnInst = as<IRReturnVal>(lastBlock->getTerminator());
+ auto returnInst = as<IRReturn>(lastBlock->getTerminator());
if (!returnInst)
return base;