From 036fdcfb2d357cecb320b5a6fd05f4859a63aeba Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 3 Jun 2009 13:28:00 +0000 Subject: Import LLVM, at r72770. This should fix LLVM PR4225. --- lib/Analysis/ConstantFolding.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/Analysis/ConstantFolding.cpp') diff --git a/lib/Analysis/ConstantFolding.cpp b/lib/Analysis/ConstantFolding.cpp index e5ab322..261c635 100644 --- a/lib/Analysis/ConstantFolding.cpp +++ b/lib/Analysis/ConstantFolding.cpp @@ -317,8 +317,6 @@ Constant *llvm::ConstantFoldInstruction(Instruction *I, const TargetData *TD) { /// result is returned, if not, null is returned. Constant *llvm::ConstantFoldConstantExpression(ConstantExpr *CE, const TargetData *TD) { - assert(TD && "ConstantFoldConstantExpression requires a valid TargetData."); - SmallVector Ops; for (User::op_iterator i = CE->op_begin(), e = CE->op_end(); i != e; ++i) Ops.push_back(cast(*i)); -- cgit v1.1