Add missing case to switch statement - DAGTypeLegalizer::ExpandIntegerResult
authorLang Hames <lhames@gmail.com>
Fri, 28 Jun 2013 18:36:42 +0000 (18:36 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 28 Jun 2013 18:36:42 +0000 (18:36 +0000)
commitdfccd9ee98cd6590bd82fa6edf24d510d953a2a0
treebb1a0138ea6ddc08db2ce2526db9d2901e4bd21c
parenta45b375610b24243ad131c96142f7f57c08c2d43
Add missing case to switch statement - DAGTypeLegalizer::ExpandIntegerResult
should expand ATOMIC_CMP_SWAP nodes the same way that it does for ATOMIC_SWAP.

Since ATOMIC_LOADs on some targets (e.g. older ARM variants) get legalized to
ATOMIC_CMP_SWAPs, the missing case had been causing i64 atomic loads to crash
during isel.

<rdar://problem/14074644>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185186 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/ARM/atomic-load-store.ll