[Lldb-commits] [lldb] ebbf7f9 - Fix lldb after D108614

Arthur Eubanks via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 2 12:59:27 PDT 2021


Author: Arthur Eubanks
Date: 2021-09-02T12:58:41-07:00
New Revision: ebbf7f90b5529460bf5cc9dde3f35aa3ee6a6093

URL: https://github.com/llvm/llvm-project/commit/ebbf7f90b5529460bf5cc9dde3f35aa3ee6a6093
DIFF: https://github.com/llvm/llvm-project/commit/ebbf7f90b5529460bf5cc9dde3f35aa3ee6a6093.diff

LOG: Fix lldb after D108614

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
index f51190e0c82cd..edfadc94debea 100644
--- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
@@ -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;
       }
     }


        


More information about the lldb-commits mailing list