Skip to content
Commit 8314b16f authored by Reid Spencer's avatar Reid Spencer
Browse files

Compute getLowBitsSet correctly. Using the complement of a 64-bit value

and shifting down without regard for the bitwidth of the APInt can lead
to incorrect initialization values. Instead, check for the word size case
(to avoid undef results from shift) and then do (1 << loBitsSet) - 1

llvm-svn: 35344
parent 726b0a7f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment