From ff7c46a11787ca6ecebf0a224772a41efef33fc0 Mon Sep 17 00:00:00 2001 From: Yong He Date: Sun, 5 Nov 2017 05:49:42 -0500 Subject: small cleanups --- source/slang/ir.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/ir.cpp') diff --git a/source/slang/ir.cpp b/source/slang/ir.cpp index 04569771a..ab961a159 100644 --- a/source/slang/ir.cpp +++ b/source/slang/ir.cpp @@ -562,11 +562,13 @@ namespace Slang IRValue * IRBuilder::getTypeVal(IRType * type) { - auto irValue = createValue( + auto irValue = createValue( this, kIROp_TypeType, nullptr); irValue->type = type; + if (auto typetype = dynamic_cast(type)) + irValue->type = typetype->type; return irValue; } -- cgit v1.2.3