Skip to content

Commit c53c9c8

Browse files
committed
Update changes after fixing merge commit
1 parent eb001bd commit c53c9c8

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

lib/CppInterOp/CXCppInterOp.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ CXTypeKind cxtype_GetTypeKind(QualType T) {
200200
TKCASE(Elaborated);
201201
TKCASE(Pipe);
202202
TKCASE(Attributed);
203-
#if CLANG_VERSION_MAJOR >= 16
204203
TKCASE(BTFTagAttributed);
205-
#endif
206204
TKCASE(Atomic);
207205
default:
208206
return CXType_Unexposed;

lib/CppInterOp/Compatibility.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ inline std::string FixTypeName(const std::string type_name) {
390390
inline std::string MakeResourceDir(llvm::StringRef Dir) {
391391
llvm::SmallString<128> P(Dir);
392392
llvm::sys::path::append(P, CLANG_INSTALL_LIBDIR_BASENAME, "clang",
393-
CLANG_VERSION_MAJOR_STRING
394-
);
393+
CLANG_VERSION_MAJOR_STRING);
395394
return std::string(P.str());
396395
}
397396

lib/CppInterOp/CppInterOp.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,12 +2981,7 @@ std::string DetectResourceDir(const char* ClangBinaryName /* = clang */) {
29812981

29822982
std::string detected_resource_dir = outs.back();
29832983

2984-
std::string version =
2985-
#if CLANG_VERSION_MAJOR < 16
2986-
CLANG_VERSION_STRING;
2987-
#else
2988-
CLANG_VERSION_MAJOR_STRING;
2989-
#endif
2984+
std::string version = CLANG_VERSION_MAJOR_STRING;
29902985
// We need to check if the detected resource directory is compatible.
29912986
if (llvm::sys::path::filename(detected_resource_dir) != version)
29922987
return "";

0 commit comments

Comments
 (0)