Skip to content

Commit 0916f81

Browse files
amykhuangkraj
authored andcommitted
[Backport] Fix instances of -Wmissing-template-arg-list-after-template-kw.
Clang has a new warning that requires a template argument list after using the template keyword. Remove uses of the template keyword when we're not specifying types. See llvm/llvm-project#94194 for the upstream clang change. Upstream-Status: Backport [chromium/chromium@b0088fa] Bug: 344680447 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5604664 Reviewed-by: Kentaro Hara <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Amy Huang <[email protected]> Cr-Commit-Position: refs/heads/main@{#1311538} Pick-to: 118-based Change-Id: Icf1426fb718550346711b332ca658d92f1421064 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/586001 Reviewed-by: Peter Varga <[email protected]>
1 parent a674222 commit 0916f81

File tree

1 file changed

+4
-4
lines changed
  • chromium/third_party/blink/renderer/platform/wtf

1 file changed

+4
-4
lines changed

chromium/third_party/blink/renderer/platform/wtf/hash_table.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,7 @@ HashTable<Key, Value, Extractor, Traits, KeyTraits, Allocator>::ExpandBuffer(
16301630
}
16311631
}
16321632
table_ = temporary_table;
1633-
Allocator::template BackingWriteBarrier(&table_);
1633+
Allocator::BackingWriteBarrier(&table_);
16341634

16351635
HashTableBucketInitializer<Traits, Allocator, Value>::InitializeTable(
16361636
original_table, new_table_size);
@@ -1684,7 +1684,7 @@ Value* HashTable<Key, Value, Extractor, Traits, KeyTraits, Allocator>::RehashTo(
16841684
// This swaps the newly allocated buffer with the current one. The store to
16851685
// the current table has to be atomic to prevent races with concurrent marker.
16861686
AsAtomicPtr(&table_)->store(new_hash_table.table_, std::memory_order_relaxed);
1687-
Allocator::template BackingWriteBarrier(&table_);
1687+
Allocator::BackingWriteBarrier(&table_);
16881688
table_size_ = new_table_size;
16891689

16901690
new_hash_table.table_ = old_table;
@@ -1836,8 +1836,8 @@ void HashTable<Key, Value, Extractor, Traits, KeyTraits, Allocator>::swap(
18361836
// on the mutator thread, which is also the only one that writes to them, so
18371837
// there is *no* risk of data races when reading.
18381838
AtomicWriteSwap(table_, other.table_);
1839-
Allocator::template BackingWriteBarrier(&table_);
1840-
Allocator::template BackingWriteBarrier(&other.table_);
1839+
Allocator::BackingWriteBarrier(&table_);
1840+
Allocator::BackingWriteBarrier(&other.table_);
18411841
if (IsWeak<ValueType>::value) {
18421842
// Weak processing is omitted when no backing store is present. In case such
18431843
// an empty table is later on used it needs to be strongified.

0 commit comments

Comments
 (0)