From 6ddacde514af7cc546caa07fede4baa3e429c33c Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Fri, 20 Dec 2024 17:45:47 -0800 Subject: [NFC] Make MemoryOrder parameters non-optional (#7171) Update Builder and IRBuilder makeStructGet and makeStructSet functions to require the memory order to be explicitly supplied. This is slightly more verbose, but will reduce the chances that we forget to properly consider synchronization when implementing new features in the future. --- src/passes/J2CLItableMerging.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/passes/J2CLItableMerging.cpp') diff --git a/src/passes/J2CLItableMerging.cpp b/src/passes/J2CLItableMerging.cpp index 472d18b7e..be8da22ce 100644 --- a/src/passes/J2CLItableMerging.cpp +++ b/src/passes/J2CLItableMerging.cpp @@ -280,6 +280,7 @@ struct J2CLItableMerging : public Pass { replaceCurrent(builder.makeStructGet( 0, curr->ref, + MemoryOrder::Unordered, parent.structInfoByITableType[curr->type.getHeapType()] ->javaClass.getStruct() .fields[0] @@ -341,4 +342,4 @@ struct J2CLItableMerging : public Pass { } // anonymous namespace Pass* createJ2CLItableMergingPass() { return new J2CLItableMerging(); } -} // namespace wasm \ No newline at end of file +} // namespace wasm -- cgit v1.2.3