summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-09-02 12:58:41 -0700
committerArthur Eubanks <aeubanks@google.com>2021-09-02 12:58:41 -0700
commitebbf7f90b5529460bf5cc9dde3f35aa3ee6a6093 (patch)
treeeb9600d62b9f7328216240e825435a50d65ed791 /lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
parent813a7f1ad7b0f2e3df341d03cc8486c3b5927ef1 (diff)
Fix lldb after D108614
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp')
-rw-r--r--lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp
index f51190e0c82c..edfadc94debe 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;
}
}