[all-commits] [llvm/llvm-project] 626c78: Fix compile error in UnresolvedSetTest.cpp, hopefu...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Thu Jul 6 03:55:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 626c789d92bc917e7db30478e9b6d4c9b567ee17
      https://github.com/llvm/llvm-project/commit/626c789d92bc917e7db30478e9b6d4c9b567ee17
  Author: John Brawn <john.brawn at arm.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M clang/unittests/AST/UnresolvedSetTest.cpp

  Log Message:
  -----------
  Fix compile error in UnresolvedSetTest.cpp, hopefully the last one

This test is failing to compile when LLVM_ENABLE_MODULES=ON due to
NamedDecl being multiply defined. Fix this by avoiding declaring our
own NamedDecl in the test and instead cast a struct of appropriate
size and alignment to NamedDecl.




More information about the All-commits mailing list