[all-commits] [llvm/llvm-project] cab3c6: [clang][TargetCXXABI] Fix -Wreturn-type warning (NFC)

nullptr-cpp via All-commits all-commits at lists.llvm.org
Tue May 4 23:45:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cab3c6c6c48ed0da0f047bdc1a337d991c78ad8c
      https://github.com/llvm/llvm-project/commit/cab3c6c6c48ed0da0f047bdc1a337d991c78ad8c
  Author: Yang Fan <nullptr.cpp at gmail.com>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M clang/include/clang/Basic/TargetCXXABI.h

  Log Message:
  -----------
  [clang][TargetCXXABI] Fix -Wreturn-type warning (NFC)

GCC warning:
```
In file included from /llvm-project/clang/include/clang/Basic/LangOptions.h:22,
                 from /llvm-project/clang/include/clang/Frontend/CompilerInvocation.h:16,
                 from /llvm-project/clang/lib/Frontend/CompilerInvocation.cpp:9:
/llvm-project/clang/include/clang/Basic/TargetCXXABI.h: In static member function ‘static bool clang::TargetCXXABI::isSupportedCXXABI(const llvm::Triple&, clang::TargetCXXABI::Kind)’:
/llvm-project/clang/include/clang/Basic/TargetCXXABI.h:114:3: warning: control reaches end of non-void function [-Wreturn-type]
  114 |   };
      |   ^
```




More information about the All-commits mailing list