]> granicus.if.org Git - clang/commit
Simplify a test. No behavior change.
authorNico Weber <nicolasweber@gmx.de>
Tue, 13 Jan 2015 00:24:46 +0000 (00:24 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 13 Jan 2015 00:24:46 +0000 (00:24 +0000)
commit109fb0cbaf330ef61516f132de9ca12179df07e5
tree34eb7324ee47ffb283dac497210c8b7c6d978f2a
parente6c5c3f4be52bc7b9de98facbedb0670087e3b15
Simplify a test. No behavior change.

Templates don't have key functions (cf computeKeyFunction() in
RecordLayoutBuilder.cpp), so don't have something that looks like one.

Also, instead of a vcall to force generation of the vtable, just construct
the object.  This is how the repro on PR5557 (what the test is for) worked too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225741 91177308-0d34-0410-b5e6-96231b3b80d8
test/SemaTemplate/virtual-member-functions.cpp