<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/CodeGen/no-devirt.cpp, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[Sema] Mark a virtual CXXMethodDecl as used if a call to it can be</title>
<updated>2017-07-13T06:08:27+00:00</updated>
<author>
<name>Akira Hatanaka</name>
<email>ahatanaka@apple.com</email>
</author>
<published>2017-07-13T06:08:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2246167362bf3596f13988723b363449b8427cfd'/>
<id>2246167362bf3596f13988723b363449b8427cfd</id>
<content type='text'>
devirtualized.

The code to detect devirtualized calls is already in IRGen, so move the
code to lib/AST and make it a shared utility between Sema and IRGen.

This commit fixes a linkage error I was seeing when compiling the
following code:

$ cat test1.cpp
struct Base {
  virtual void operator()() {}
};

template&lt;class T&gt;
struct Derived final : Base {
  void operator()() override {}
};

Derived&lt;int&gt; *d;

int main() {
  if (d)
    (*d)();
  return 0;
}

rdar://problem/33195657

Differential Revision: https://reviews.llvm.org/D34301

llvm-svn: 307883
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
devirtualized.

The code to detect devirtualized calls is already in IRGen, so move the
code to lib/AST and make it a shared utility between Sema and IRGen.

This commit fixes a linkage error I was seeing when compiling the
following code:

$ cat test1.cpp
struct Base {
  virtual void operator()() {}
};

template&lt;class T&gt;
struct Derived final : Base {
  void operator()() override {}
};

Derived&lt;int&gt; *d;

int main() {
  if (d)
    (*d)();
  return 0;
}

rdar://problem/33195657

Differential Revision: https://reviews.llvm.org/D34301

llvm-svn: 307883
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent devirtualization of calls to un-instantiated functions.</title>
<updated>2017-06-20T22:08:44+00:00</updated>
<author>
<name>Sunil Srivastava</name>
<email>sunil_srivastava@playstation.sony.com</email>
</author>
<published>2017-06-20T22:08:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=15ed29290643d2ee25e6b2368cda8c594abc6d7b'/>
<id>15ed29290643d2ee25e6b2368cda8c594abc6d7b</id>
<content type='text'>
PR 27895

Differential Revision: https://reviews.llvm.org/D22057

llvm-svn: 305862
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR 27895

Differential Revision: https://reviews.llvm.org/D22057

llvm-svn: 305862
</pre>
</div>
</content>
</entry>
</feed>
