diff options
author | ed <ed@FreeBSD.org> | 2009-06-03 13:28:00 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-03 13:28:00 +0000 |
commit | 036fdcfb2d357cecb320b5a6fd05f4859a63aeba (patch) | |
tree | 90502b3518861e1704738c228456f7079013368b /lib/Analysis/ConstantFolding.cpp | |
parent | 3277b69d734b9c90b44ebde4ede005717e2c3b2e (diff) | |
download | FreeBSD-src-036fdcfb2d357cecb320b5a6fd05f4859a63aeba.zip FreeBSD-src-036fdcfb2d357cecb320b5a6fd05f4859a63aeba.tar.gz |
Import LLVM, at r72770.
This should fix LLVM PR4225.
Diffstat (limited to 'lib/Analysis/ConstantFolding.cpp')
-rw-r--r-- | lib/Analysis/ConstantFolding.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<Constant*, 8> Ops; for (User::op_iterator i = CE->op_begin(), e = CE->op_end(); i != e; ++i) Ops.push_back(cast<Constant>(*i)); |