Fix lldb after D108614
authorArthur Eubanks <aeubanks@google.com>
Thu, 2 Sep 2021 19:58:41 +0000 (12:58 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 2 Sep 2021 19:58:41 +0000 (12:58 -0700)
lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp

index f51190e..edfadc9 100644 (file)
@@ -240,9 +240,9 @@ bool fixupRSAllocationStructByValCalls(llvm::Module &module) {
     for (unsigned I = call_attribs.index_begin(); I != call_attribs.index_end();
          I++) {
       // if this argument is passed by val
-      if (call_attribs.hasAttribute(I, llvm::Attribute::ByVal)) {
+      if (call_attribs.hasAttributeAtIndex(I, llvm::Attribute::ByVal)) {
         // strip away the byval attribute
-        call_inst->removeAttribute(I, llvm::Attribute::ByVal);
+        call_inst->removeAttributeAtIndex(I, llvm::Attribute::ByVal);
         changed = true;
       }
     }