Update ResolveFunctionPointers to build after the changes

of llvm r193091.  Thanks to Ed Maste for narrowing it down.

llvm-svn: 193140
This commit is contained in:
Jason Molenda 2013-10-22 03:11:55 +00:00
parent dba14ddd4f
commit 12075f71f9
1 changed files with 2 additions and 2 deletions

View File

@ -361,8 +361,8 @@ IRForTarget::ResolveFunctionPointers(llvm::Module &llvm_module)
// 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.
if (fun->hasFnAttribute(Attribute::NoBuiltin)) {
Attribute builtin = Attribute::get(fun->getContext(), Attribute::Builtin);
if (fun->hasFnAttribute(llvm::Attribute::NoBuiltin)) {
llvm::Attribute builtin = llvm::Attribute::get(fun->getContext(), llvm::Attribute::Builtin);
for (auto u = fun->use_begin(), e = fun->use_end(); u != e; ++u) {
if (auto call = dyn_cast<CallInst>(*u)) {