From 1653731718e75c297730dfb878e9f23895d1051d Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 1 Aug 2023 15:39:28 -0400 Subject: Fix literals needing cast (#3039) * Cast integer literals. * Fix expected output. * For CUDA, search global instructions to see what types are used. Improve lookup for fp16 header in CUDA. * Fix issue with f16tof32 * Small improvement around finding used base types. --- source/slang/slang-ir-constexpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-constexpr.cpp') diff --git a/source/slang/slang-ir-constexpr.cpp b/source/slang/slang-ir-constexpr.cpp index 1d6fd163c..dbfec9ae7 100644 --- a/source/slang/slang-ir-constexpr.cpp +++ b/source/slang/slang-ir-constexpr.cpp @@ -147,7 +147,7 @@ bool opCanBeConstExpr(IRInst* value) // TODO: realistically need to special-case `call` // operations here, so that we check whether the // callee function is fixed/known, and if it is - // whether it has been decoared as constant-foldable + // whether it has been declared as constant-foldable return opCanBeConstExpr(value->getOp()); } -- cgit v1.2.3