Remove builtin attribute from calls whose targets we replace
authorStefanus Du Toit <stefanus.du.toit@intel.com>
Tue, 23 Jul 2013 21:34:03 +0000 (21:34 +0000)
committerStefanus Du Toit <stefanus.du.toit@intel.com>
Tue, 23 Jul 2013 21:34:03 +0000 (21:34 +0000)
commitfc6b7a0e8a42370525852e47089b920ebd59cc32
tree7345275aa5a4f67cc42da6fbf4f813f34223467a
parent942c36bda2b3200e06651f661df9dbb61ef79d47
Remove builtin attribute from calls whose targets we replace

If we are replacing a function with the nobuiltin attribute, it may be called
with the builtin attribute on call sites. Remove any such attributes since it's
illegal to have a builtin call to something other than a nobuiltin function.

This fixes the current buildbot breakage (where LLDB crashes on
"expression new foo(42)").

llvm-svn: 186990
lldb/source/Expression/IRForTarget.cpp