Skip to content
Commit b46345d7 authored by Eli Friedman's avatar Eli Friedman
Browse files

Avoid undefined behavior in negation in LSR. Patch by Ahmed Charles.

Someone more familiar with LSR should double-check that the extra cast is actually doing the right thing in the overflow cases; I'm not completely confident that's that case. 

llvm-svn: 141916
parent df4f7ca3
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