HLSL: Report failed assignments; some were silently not happening.
Starting out with this turned off, so tests can be locally fixed, then will turn it on.
This commit is contained in:
		
							parent
							
								
									879a16581f
								
							
						
					
					
						commit
						b783d712ab
					
				| @ -2,5 +2,5 @@ | ||||
| // For the version, it uses the latest git tag followed by the number of commits.
 | ||||
| // For the date, it uses the current date (when then script is run).
 | ||||
| 
 | ||||
| #define GLSLANG_REVISION "SPIRV99.1340" | ||||
| #define GLSLANG_DATE "26-Jul-2016" | ||||
| #define GLSLANG_REVISION "SPIRV99.1348" | ||||
| #define GLSLANG_DATE "27-Jul-2016" | ||||
|  | ||||
| @ -1585,6 +1585,9 @@ bool HlslGrammar::acceptAssignmentExpression(TIntermTyped*& node) | ||||
|     } | ||||
| 
 | ||||
|     node = intermediate.addAssign(assignOp, node, rightNode, loc); | ||||
|     // TODO: Turn this on after tests are fixed for it:
 | ||||
|     //if (node == nullptr)
 | ||||
|     //    parseContext.error(loc, "could not create assignment", "", "");
 | ||||
| 
 | ||||
|     if (! peekTokenClass(EHTokComma)) | ||||
|         return true; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 John Kessenich
						John Kessenich