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)
commita8c77e4266bf5751d4804b983ea9151011fd61ba
tree116f7cb2a4099b0058ec3bb02ffba7891b25a47e
parentcadd8a068e3fe3409abad53a86ca751052456ba4
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.

llvm-svn: 174240
llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp