aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-16 19:35:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-16 19:35:34 +0000
commit15b64f335b2d8566d58a5e791c12c0ca0a17fe7a (patch)
tree22a23c463dc1327f41e73ab1e1d67a8a3736e6a9 /lib/CodeGen/SelectionDAG
parent777448f6491b6b82e2c39f11d353e39c24dd20e2 (diff)
downloadexternal_llvm-15b64f335b2d8566d58a5e791c12c0ca0a17fe7a.zip
external_llvm-15b64f335b2d8566d58a5e791c12c0ca0a17fe7a.tar.gz
external_llvm-15b64f335b2d8566d58a5e791c12c0ca0a17fe7a.tar.bz2
Revert r98656, its breaking all over the place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 11293e4..3d9a4d5 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -2592,11 +2592,6 @@ void SelectionDAGBuilder::visitGetElementPtr(User &I) {
}
Ty = StTy->getElementType(Field);
- } else if (const UnionType *UnTy = dyn_cast<UnionType>(Ty)) {
- unsigned Field = cast<ConstantInt>(Idx)->getZExtValue();
-
- // Offset canonically 0 for unions, but type changes
- Ty = UnTy->getElementType(Field);
} else {
Ty = cast<SequentialType>(Ty)->getElementType();