From c5d64607c96d9237f55988736e6ba7cc6a3d0a67 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60975 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 3f8a463f67e..db45e44da93 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/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(), -- 2.34.1