commit | 80d3b1e7087421008df3c6794b60beaf395efbeb | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sat Mar 15 18:10:49 2014 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sat Mar 15 18:10:49 2014 +0000 |
tree | 4cc4a5baba44fe9d56fe8620973b22ffb6fd2f28 | |
parent | 14029414f51301c8543710ffd8f7c8c1e53789fe [diff] |
PointerIntPair: Avoid an (academic) case of undefined behavior in the DenseMapInfo specialization. If we use a pair with an enum type this could create values outside of the enum range. Avoid it by creating the bit pattern directly. While there turn a dynamic assert into a static one. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204010 91177308-0d34-0410-b5e6-96231b3b80d8