summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-03-15 18:10:49 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-03-15 18:10:49 +0000
commitd6fa23e1db04c1f82499a452cdea7b550fa30366 (patch)
treefaff89c7bc1c9228d0f7a766f20ed8b74f776004 /llvm/lib/CodeGen/MachineInstr.cpp
parent4f938ef1d8885375cb61a4603cec2a4f8bb07be5 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud