Skip to content
Unverified Commit 17cba469 authored by Steven Perron's avatar Steven Perron Committed by GitHub
Browse files

Remove undefined behaviour when folding shifts. (#2157)

We currently simulate all shift operations when the two operand are
constants.  The problem is that if the shift amount is larger than
32, the result is undefined.

I'm changing the folder to return 0 if the shift value is too high.
That way, we will have defined behaviour.

https://crbug.com/910937.
parent d81a0c0e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment