From 472cd640fae612f51af0a0018c5b72c3130aa7bd Mon Sep 17 00:00:00 2001 From: Mon P Wang Date: Sat, 13 Dec 2008 08:16:43 +0000 Subject: [PATCH] Remove assertion to allow promotion of a truncating store operand llvm-svn: 60975 --- llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 3f8a463f67e7..db45e44da937 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -969,8 +969,6 @@ SDValue DAGTypeLegalizer::PromoteIntOp_STORE(StoreSDNode *N, unsigned OpNo){ SDValue Val = GetPromotedInteger(N->getValue()); // Get promoted value. - assert(!N->isTruncatingStore() && "Cannot promote this store operand!"); - // Truncate the value and store the result. return DAG.getTruncStore(Ch, Val, Ptr, N->getSrcValue(), SVOffset, N->getMemoryVT(),