OSDN Git Service

Remove an over-zealous assertion. A pointer type could be illegal if the target...
authorOwen Anderson <resistor@mac.com>
Tue, 27 Aug 2013 00:28:23 +0000 (00:28 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 27 Aug 2013 00:28:23 +0000 (00:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189299 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp

index 79a4070..d2c26d5 100644 (file)
@@ -455,7 +455,6 @@ SDValue DAGTypeLegalizer::ExpandOp_NormalStore(SDNode *N, unsigned OpNo) {
 
   Ptr = DAG.getNode(ISD::ADD, dl, Ptr.getValueType(), Ptr,
                     DAG.getConstant(IncrementSize, Ptr.getValueType()));
-  assert(isTypeLegal(Ptr.getValueType()) && "Pointers must be legal!");
   Hi = DAG.getStore(Chain, dl, Hi, Ptr,
                     St->getPointerInfo().getWithOffset(IncrementSize),
                     isVolatile, isNonTemporal,