[all-commits] [llvm/llvm-project] 2a43b5: Remove unnecessary template specifiers from truct ...

jensmassberg via All-commits all-commits at lists.llvm.org
Tue Jan 10 03:35:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a43b5038d9b218260c59cf0f9e171c9cec5ab25
      https://github.com/llvm/llvm-project/commit/2a43b5038d9b218260c59cf0f9e171c9cec5ab25
  Author: Jens Massberg <massberg at google.com>
  Date:   2023-01-10 (Tue, 10 Jan 2023)

  Changed paths:
    M llvm/unittests/IR/PassBuilderCallbacksTest.cpp

  Log Message:
  -----------
  Remove unnecessary template specifiers from truct constructors in tests.

As far as I can see they are unnecessary and in C++20 they lead to errors.
Removing them the tests pass with C++20 and the default version.
Example error message:
```
llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:275:30: error: expected unqualified-id before ‘)’ token
  275 |   MockAnalysisHandle<Module>() { setDefaults(); }
```

Differential Revision: https://reviews.llvm.org/D141358




More information about the All-commits mailing list