This patch makes "&Cls::purevfn" not an odr use. This isn't what the standard
authorNick Lewycky <nicholas@mxc.ca>
Sat, 2 Feb 2013 00:22:37 +0000 (00:22 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sat, 2 Feb 2013 00:22:37 +0000 (00:22 +0000)
commit214a5661d1c76468222d6f941e5dcb415f0f482a
tree78fb7e767b85cbbc3adf21d8e9e8b74726d66476
parent98b93e5a94f69f6c7b12152a98455f501db1895d
This patch makes "&Cls::purevfn" not an odr use. This isn't what the standard
says, but that's a defect (to be filed). "Cls::purevfn()" is still an odr use.

Also fixes a bug in the previous patch that caused us to not mark the function
referenced just because we didn't want to mark it odr used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174240 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/DeadArgumentElimination.cpp