Skip to content
Branch: master
Find file History
cuonglm and mdempsky cmd/compile: fix unsafeValue handles OLSH/ORSH wrong
For OLSH/ORSH, the right node is not a uintptr-typed. However,
unsafeValue still be called recursively for it, causing the
compiler crashes.

To fixing, the right node only needs to be evaluated
for side-effects, so just discard its value.

Fixes #32959

Change-Id: I34d5aa0823a0545f6dad1ec34774235ecf11addc
Run-TryBot: Cuong Manh Le <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: David Chase <>
Reviewed-by: Matthew Dempsky <>
Latest commit 06ef108 Jul 7, 2019
You can’t perform that action at this time.