Reduce lifetime of address temporary. After traversing the lvalue node tree we're fully done computing the relative address and emitting any pointer arithmetic that might have been needed. So the temporary that would have been used for that is no longer needed. Change-Id: I0a10bff979128f03544d0f8aa860c29f8867973a Reviewed-on: https://swiftshader-review.googlesource.com/13948 Tested-by: Nicolas Capens <nicolascapens@google.com> Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/OpenGL/compiler/OutputASM.h b/src/OpenGL/compiler/OutputASM.h index 2d04e38..118b8b4 100644 --- a/src/OpenGL/compiler/OutputASM.h +++ b/src/OpenGL/compiler/OutputASM.h
@@ -274,7 +274,7 @@ void destination(sw::Shader::DestinationParameter ¶meter, TIntermTyped *argument, int index = 0); void copy(TIntermTyped *dst, TIntermNode *src, int offset = 0); void assignLvalue(TIntermTyped *dst, TIntermTyped *src); - int lvalue(sw::Shader::DestinationParameter &dst, Temporary &address, TIntermTyped *node); + int lvalue(sw::Shader::DestinationParameter &dst, TIntermTyped *node); int lvalue(TIntermTyped *&root, unsigned int &offset, sw::Shader::Relative &rel, unsigned char &mask, Temporary &address, TIntermTyped *node); sw::Shader::ParameterType registerType(TIntermTyped *operand); bool hasFlatQualifier(TIntermTyped *operand);