aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-09 19:37:28 +0000
committerChris Lattner <sabre@nondot.org>2010-11-09 19:37:28 +0000
commit274191fa705c73ee14b51d3cc5b0cafe3b41c44a (patch)
tree16cbc1123ac9c276ead77a516ce626869922efe9 /lib
parent16cb3763c5a1dad7d6bcbf0fffdfc58c84b46f89 (diff)
add a case we fail to devirt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/README.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index e63df536ae..6d42d812a0 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -1963,3 +1963,23 @@ bb3: ; preds = %entry
ret i32 %b
}
//===---------------------------------------------------------------------===//
+
+clang -O3 fails to devirtualize this virtual inheritance case: (GCC PR45875)
+
+struct c1 {};
+struct c10 : c1{
+ virtual void foo ();
+};
+struct c11 : c10, c1{
+ virtual void f6 ();
+};
+struct c28 : virtual c11{
+ void f6 ();
+};
+void check_c28 () {
+ c28 obj;
+ c11 *ptr = &obj;
+ ptr->f6 ();
+}
+
+//===---------------------------------------------------------------------===//