diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-15 18:10:49 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-03-15 18:10:49 +0000 |
commit | d6fa23e1db04c1f82499a452cdea7b550fa30366 (patch) | |
tree | faff89c7bc1c9228d0f7a766f20ed8b74f776004 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 4f938ef1d8885375cb61a4603cec2a4f8bb07be5 (diff) | |
download | bcm5719-llvm-d6fa23e1db04c1f82499a452cdea7b550fa30366.tar.gz bcm5719-llvm-d6fa23e1db04c1f82499a452cdea7b550fa30366.zip |
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.
llvm-svn: 204010
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions