<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 --- - Regression: "Stored value type does not match pointer operand type!""
   href="http://llvm.org/bugs/show_bug.cgi?id=20771">20771</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression: "Stored value type does not match pointer operand type!"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>C++
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>nicolasweber@gmx.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>hummer:delta thakis$ cat repro.ii
class Heap;
struct Smi {
  inline static Smi *cast();
};
struct StoreBuffer {
  inline void Mark(char *addr);
  Heap *heap_;
};
struct Heap {
  Smi *store_buffer_top() { return Smi::cast(); }
  inline void RecordWrite(char *address, int offset);
  StoreBuffer store_buffer_;
};
void StoreBuffer::Mark(char *addr) {
  char **top = reinterpret_cast<char **>(heap_->store_buffer_top());
  *top++ = addr;
}
void Heap::RecordWrite(char *address, int offset) {
  store_buffer_.Mark(address + offset);
};
class Deserializer {
  void ReadChunk(void **start, void **end, char *object_address);
};
void Deserializer::ReadChunk(void **current, void **limit,
                             char *current_object_address) {
  Heap *const heap = 0;
  while (current < limit) {
    char *current_address = reinterpret_cast<char *>(current);
    heap->RecordWrite(
        current_object_address,
        static_cast<int>(current_address - current_object_address));
  }
}
hummer:delta thakis$ /Users/thakis/src/llvm-build/bin/clang-cl -w -c repro.ii
-O2 -Xclang -triple -Xclang  i686-pc-windows-msvc 
Stored value type does not match pointer operand type!
  store i8** %current, i8** %0, align 4
 i8*fatal error: error in backend: Broken function found, compilation aborted!
clang-3.5: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 3.6.0 (216461)
Target: x86_64-apple-windows-msvc
Thread model: posix
clang-3.5: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.5: note: diagnostic msg: Error generating preprocessed source(s) - no
preprocessable inputs.


This is with r216461. It used to work with r215365.</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>