diff options
author | ed <ed@FreeBSD.org> | 2009-06-07 09:21:09 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-06-07 09:21:09 +0000 |
commit | e65fe1a3e103e3aa81b69704d20eb95f54097271 (patch) | |
tree | 7faa7e6887831d68515763b37bd680e3d4a886ea /lib/Transforms/IPO/IPConstantPropagation.cpp | |
parent | 2361a5c2bfbaef476824e51fa72712e334219c7b (diff) | |
download | FreeBSD-src-e65fe1a3e103e3aa81b69704d20eb95f54097271.zip FreeBSD-src-e65fe1a3e103e3aa81b69704d20eb95f54097271.tar.gz |
Import LLVM r73021.
Diffstat (limited to 'lib/Transforms/IPO/IPConstantPropagation.cpp')
-rw-r--r-- | lib/Transforms/IPO/IPConstantPropagation.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/IPConstantPropagation.cpp b/lib/Transforms/IPO/IPConstantPropagation.cpp index 2dc8558..e4a9dea 100644 --- a/lib/Transforms/IPO/IPConstantPropagation.cpp +++ b/lib/Transforms/IPO/IPConstantPropagation.cpp @@ -241,15 +241,11 @@ bool IPCP::PropagateConstantReturn(Function &F) { for (Value::use_iterator I = Call->use_begin(), E = Call->use_end(); I != E;) { - Instruction *Ins = dyn_cast<Instruction>(*I); + Instruction *Ins = cast<Instruction>(*I); // Increment now, so we can remove the use ++I; - // Not an instruction? Ignore - if (!Ins) - continue; - // Find the index of the retval to replace with int index = -1; if (ExtractValueInst *EV = dyn_cast<ExtractValueInst>(Ins)) |