Merge pull request #1780 from billhollings/out-of-bounds-swizzle-fix

Per spec, support undefined behavior for out-of-bounds swizzles.
diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp
index ccab208..21d5439 100644
--- a/spirv_glsl.cpp
+++ b/spirv_glsl.cpp
@@ -8525,7 +8525,7 @@
 	case 3:
 		return "w";
 	default:
-		SPIRV_CROSS_THROW("Swizzle index out of range");
+		return "x";		// Don't crash, but engage the "undefined behavior" described for out-of-bounds logical addressing in spec.
 	}
 }