<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - DebugInfoVerifier fails on many checked in testcases"
   href="http://llvm.org/bugs/show_bug.cgi?id=19434">19434</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DebugInfoVerifier fails on many checked in testcases
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>dexonsmith@apple.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The DebugInfoVerifier currently (as of r206300) fails on 217 checked in
testcases, or 225 if we use --verify-each.  Reproduce by running make check
after applying the following patch:

diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp
index 887ca7d..f7771bc 100644
--- a/lib/IR/Verifier.cpp
+++ b/lib/IR/Verifier.cpp
@@ -77,7 +77,7 @@
 #include <cstdarg>
 using namespace llvm;

-static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(false));
+static cl::opt<bool> VerifyDebugInfo("verify-debug-info", cl::init(true));

 namespace {
 struct VerifierSupport {
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 8f958bb..da897de 100644
--- a/tools/opt/opt.cpp
+++ b/tools/opt/opt.cpp
@@ -94,7 +94,8 @@ static cl::opt<bool>
 NoVerify("disable-verify", cl::desc("Do not verify result module"),
cl::Hidden);

 static cl::opt<bool>
-VerifyEach("verify-each", cl::desc("Verify after each transform"));
+VerifyEach("verify-each", cl::desc("Verify after each transform"),
+           cl::init(true));

 static cl::opt<bool>
 StripDebug("strip-debug",</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>