Fixing a build breakage caused from a change in LLVM rL281019
authorDimitar Vlahovski <dvlahovski@google.com>
Fri, 9 Sep 2016 10:14:11 +0000 (10:14 +0000)
committerDimitar Vlahovski <dvlahovski@google.com>
Fri, 9 Sep 2016 10:14:11 +0000 (10:14 +0000)
Summary:
LLVM guys did some clean-up of the Attribute getters/setters
and because of that the build was failing.

Reviewers: ldrumm

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D24382

llvm-svn: 281030

lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp

index 354d5d6..3ee3a53 100644 (file)
@@ -255,9 +255,7 @@ bool fixupRSAllocationStructByValCalls(llvm::Module &module) {
       // if this argument is passed by val
       if (call_attribs.hasAttribute(i, llvm::Attribute::ByVal)) {
         // strip away the byval attribute
-        call_inst->removeAttribute(
-            i,
-            llvm::Attribute::get(module.getContext(), llvm::Attribute::ByVal));
+        call_inst->removeAttribute(i, llvm::Attribute::ByVal);
         changed = true;
       }
     }