Skip to content

Commit

Permalink
[clang][TargetCXXABI] Fix -Wreturn-type warning (NFC)
Browse files Browse the repository at this point in the history
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 |   };
      |   ^
```
  • Loading branch information
nullptr-cpp committed May 5, 2021
1 parent 9775582 commit cab3c6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clang/include/clang/Basic/TargetCXXABI.h
Expand Up @@ -111,6 +111,7 @@ class TargetCXXABI {
case Microsoft:
return T.isKnownWindowsMSVCEnvironment();
}
llvm_unreachable("invalid CXXABI kind");
};

/// Does this ABI generally fall into the Itanium family of ABIs?
Expand Down

0 comments on commit cab3c6c

Please sign in to comment.