Update ResolveFunctionPointers to build after the changes
authorJason Molenda <jmolenda@apple.com>
Tue, 22 Oct 2013 03:11:55 +0000 (03:11 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 22 Oct 2013 03:11:55 +0000 (03:11 +0000)
of llvm r193091.  Thanks to Ed Maste for narrowing it down.

llvm-svn: 193140

lldb/source/Expression/IRForTarget.cpp

index cac3fdf60dfae38c2f1cd321a1a5825a2ba37ed9..4d14ebd7fd1cf1e02b02c11b78896a80b7fd3c10 100644 (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)) {