]> granicus.if.org Git - clang/commit
When calling a virtual member function on a base class and the most derived class...
authorAnders Carlsson <andersca@mac.com>
Sat, 29 Jan 2011 03:52:01 +0000 (03:52 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 29 Jan 2011 03:52:01 +0000 (03:52 +0000)
commit1679f5a84ae1e578b0de347c89eaf31e0465f33c
tree63f9aeb69eaefebba9deaaf42f54816f19f69de2
parent336a7dc56871ccfeceecc296c9624f66f7ac01ec
When calling a virtual member function on a base class and the most derived class is marked 'final', we can devirtualize the call.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124524 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExprCXX.cpp
test/CodeGenCXX/devirtualize-virtual-function-calls-final.cpp