diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-16 14:39:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-16 14:39:19 +0000 |
commit | fb83b043ebce5b1492635998c9c89420fcef3592 (patch) | |
tree | 75bf2519b37d6da5ad8e31f545510c38fb652b39 /llvm/lib/Analysis/Lint.cpp | |
parent | 722f558f0773d99fd6e8c12939bcfedb9b10c319 (diff) | |
download | bcm5719-llvm-fb83b043ebce5b1492635998c9c89420fcef3592.tar.gz bcm5719-llvm-fb83b043ebce5b1492635998c9c89420fcef3592.zip |
Revert r111058, the lint check for indirectbr successors that aren't
address-taken. This can occur normally, if the code which took the
address got DCEd.
llvm-svn: 111121
Diffstat (limited to 'llvm/lib/Analysis/Lint.cpp')
-rw-r--r-- | llvm/lib/Analysis/Lint.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/Lint.cpp b/llvm/lib/Analysis/Lint.cpp index 5f1cb61dacb..a9d972435f5 100644 --- a/llvm/lib/Analysis/Lint.cpp +++ b/llvm/lib/Analysis/Lint.cpp @@ -521,12 +521,6 @@ void Lint::visitIndirectBrInst(IndirectBrInst &I) { Assert1(I.getNumDestinations() != 0, "Undefined behavior: indirectbr with no destinations", &I); - - for (unsigned i = 0, e = I.getNumDestinations(); i != e; ++i) - Assert1(I.getDestination(i)->hasAddressTaken(), - "Unusual: indirectbr destination has not " - "had its address taken", - &I); } void Lint::visitExtractElementInst(ExtractElementInst &I) { |