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 | a6b90ea064f19c2e7fc2392ef18609cfdfa356cb (patch) | |
| tree | c239e752e119a81a7c4e40e27d24fa2b479bc0c9 /lib | |
| parent | 758d28682b62de5b47a99a5f298efb2510d6fcc0 (diff) | |
| download | external_llvm-a6b90ea064f19c2e7fc2392ef18609cfdfa356cb.zip external_llvm-a6b90ea064f19c2e7fc2392ef18609cfdfa356cb.tar.gz external_llvm-a6b90ea064f19c2e7fc2392ef18609cfdfa356cb.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Analysis/Lint.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Analysis/Lint.cpp b/lib/Analysis/Lint.cpp index 5f1cb61..a9d9724 100644 --- a/lib/Analysis/Lint.cpp +++ b/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) { |
