Skip to content
Commit fb58faf2 authored by Dan Gohman's avatar Dan Gohman
Browse files

Add an assertion to the form of SelectionDAG::getConstant that takes

a uint64_t to verify that the value is in range for the given type,
to help catch accidental overflow. Fix a few places that relied on
getConstant implicitly truncating the value.

llvm-svn: 63128
parent 570c357d
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