Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 994e478

Browse files
committed
[lldb] Use LLVM_FALLTHROUGH to avoid a compiler error when building with MSVC.
1 parent 47bd76d commit 994e478

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,15 +1893,15 @@ AppleObjCRuntimeV2::DynamicClassInfoExtractor::ComputeHelper(
18931893
if (loader->IsFullyInitialized()) {
18941894
switch (exe_ctx.GetTargetRef().GetDynamicClassInfoHelper()) {
18951895
case eDynamicClassInfoHelperAuto:
1896-
[[clang::fallthrough]];
1896+
LLVM_FALLTHROUGH;
18971897
case eDynamicClassInfoHelperGetRealizedClassList:
18981898
if (m_runtime.m_has_objc_getRealizedClassList_trylock)
18991899
return DynamicClassInfoExtractor::objc_getRealizedClassList_trylock;
1900-
[[clang::fallthrough]];
1900+
LLVM_FALLTHROUGH;
19011901
case eDynamicClassInfoHelperCopyRealizedClassList:
19021902
if (m_runtime.m_has_objc_copyRealizedClassList)
19031903
return DynamicClassInfoExtractor::objc_copyRealizedClassList;
1904-
[[clang::fallthrough]];
1904+
LLVM_FALLTHROUGH;
19051905
case eDynamicClassInfoHelperRealizedClassesStruct:
19061906
return DynamicClassInfoExtractor::gdb_objc_realized_classes;
19071907
}

0 commit comments

Comments
 (0)