<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 --- - llvm/lib/Transforms/Scalar/SCCP.cpp: Assertion `getLatticeValue() == forcedconstant && "Cannot move from overdefined to constant!"' failed"
   href="http://llvm.org/bugs/show_bug.cgi?id=16052">16052</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm/lib/Transforms/Scalar/SCCP.cpp: Assertion `getLatticeValue() == forcedconstant && "Cannot move from overdefined to constant!"' failed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kcc@google.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>test case by csmith/creduce; it has an undefined behaviour (missing return)
llvm 182077

int a;
int b;
static
int fn1 (p1) {
  return p1 ? p1 : -p1;
}
int fn2 () {
  a = fn2 ();
  b = 8LL / a;
  fn1 (b);
  // return statement missing
}


% clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O1 -x c g.c
g.c:12:1: warning: control reaches end of non-void function
}
^
clang: llvm/lib/Transforms/Scalar/SCCP.cpp:119: bool <anonymous
namespace>::LatticeVal::markConstant(llvm::Constant *): Assertion
`getLatticeValue() == forcedconstant && "Cannot move from overdefined to
constant!"' failed.</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>