From eee68205636f26ac8060dbb2b1725fd3c80e54a8 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 27 Feb 2019 15:17:13 -0500 Subject: Hotfix/fix stdlib error reporting (#866) * * Add 'identity' version of bit casts (asint, asuint, asfloat) for scalar and vector * Added identity bit casts for matrix (cos no op). We don't support matrix asint on glsl targets * Added tests in bit-cast.slang * Use kIRPseudoOp_Pos for identity asuint/asint/asfloat casts. * * Stop crash if error in stdlib * Use the buildin source manager when compiling stdlib - fixes that line numbers are displayed * Typo fix * Output line directives for 'meta' slang souce files into stdlib * Improve comments and function names. --- source/slang/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/compiler.h') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 246b34ea7..49d777931 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -706,7 +706,7 @@ namespace Slang { // TODO: We really shouldn't need this type in the long run. // The few places that rely on it should be refactored to just - // depend on the unerlying information (a linkage and a diagnostic + // depend on the underlying information (a linkage and a diagnostic // sink) directly. // // The flags to control dumping and validation of IR should be -- cgit v1.2.3