Commit 38c065dd by Antonio Maiorano

Subzero: fix incorrect cast

'v' could be an Ice::Variable or Ice::Constant, both of which derive from Ice::Operand. This was just a slip, the function was always meant to cast to the return type, Ice::Operand*. Bug: chromium:1047150 Change-Id: I88414de1c56504eafae17c483c7bb574b269a587 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40728 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Tested-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent 29a9809a
...@@ -410,7 +410,7 @@ Value *V(Ice::Operand *v) ...@@ -410,7 +410,7 @@ Value *V(Ice::Operand *v)
Ice::Operand *V(Value *v) Ice::Operand *V(Value *v)
{ {
return reinterpret_cast<Ice::Variable *>(v); return reinterpret_cast<Ice::Operand *>(v);
} }
BasicBlock *B(Ice::CfgNode *b) BasicBlock *B(Ice::CfgNode *b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment