diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-10-12 19:41:04 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-10-12 19:41:04 +0000 |
| commit | 8e7670de19334eccfe9ac5fc70fa57015b1654c8 (patch) | |
| tree | 6987f6a44af0325a3b940e3c461156a3776a9e44 /test/CodeGenCXX/virtual-function-calls.cpp | |
| parent | f4e462c2c2f4cb76c5a75d952adeb4355f32f6a7 (diff) | |
| download | clang-8e7670de19334eccfe9ac5fc70fa57015b1654c8.tar.gz clang-8e7670de19334eccfe9ac5fc70fa57015b1654c8.tar.bz2 clang-8e7670de19334eccfe9ac5fc70fa57015b1654c8.tar.xz | |
Factor out devirtualization checking into a separate function and make it handle references correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/virtual-function-calls.cpp')
| -rw-r--r-- | test/CodeGenCXX/virtual-function-calls.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/CodeGenCXX/virtual-function-calls.cpp b/test/CodeGenCXX/virtual-function-calls.cpp index 34ab1df689..d27a7c9bfc 100644 --- a/test/CodeGenCXX/virtual-function-calls.cpp +++ b/test/CodeGenCXX/virtual-function-calls.cpp @@ -8,10 +8,3 @@ struct A { void f(A *a) { a->f('c'); } - -void f(A a) { - // This should not be a virtual function call. - - // CHECK: call void @_ZN1A1fEc - a.f('c'); -}
\ No newline at end of file |
