[MS ABI] Unify constant and non-constant member pointer conversion
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Jun 2015 00:06:50 +0000 (00:06 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 29 Jun 2015 00:06:50 +0000 (00:06 +0000)
commit0d9ad687c757c40d0029bbfda7c09759c7595a98
tree72178e935be5a403e11d08c859a26e8a992fc799
parentd94330440ac3e1bdced90a0f384cbb0be608549f
[MS ABI] Unify constant and non-constant member pointer conversion

We had two separate paths for member pointer conversion: one which
takes a constant and another which takes an arbitrary value.  In the
latter case, we are permitted to construct arbitrary instructions.

It turns out that the bulk of the member pointer conversion is sharable
if we construct an artificial IRBuilder.

llvm-svn: 240921
clang/lib/CodeGen/MicrosoftCXXABI.cpp