summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-11-01 18:24:03 +0000
committerReid Kleckner <rnk@google.com>2018-11-01 18:24:03 +0000
commit150fc2eb17670ba414efb3e41894428b8263f782 (patch)
tree0d7f2e01ce7069c975fc95fd4bb4b286cd56d756
parent87cbbdf78b808510005a309a238186d11af96430 (diff)
downloadlibcxxabi-150fc2eb17670ba414efb3e41894428b8263f782.tar.gz
Use C++11 fallthrough attribute syntax when available and add a break
Summary: This silences the two -Wimplicit-fallthrough warnings clang finds in ItaniumDemangle.h in libc++abi. Clang does not have a GNU attribute spelling for this attribute, so this is necessary. I will commit the same change to the LLVM demangler soon. Reviewers: EricWF, ldionne Subscribers: christof, erik.pilkington, cfe-commits Differential Revision: https://reviews.llvm.org/D53985 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@345870 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--src/demangle/ItaniumDemangle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/demangle/ItaniumDemangle.h b/src/demangle/ItaniumDemangle.h
index 2f4d786..f992645 100644
--- a/src/demangle/ItaniumDemangle.h
+++ b/src/demangle/ItaniumDemangle.h
@@ -2812,6 +2812,7 @@ AbstractManglingParser<Derived, Alloc>::parseCtorDtorName(Node *&SoFar,
SoFar = make<ExpandedSpecialSubstitution>(SSK);
if (!SoFar)
return nullptr;
+ break;
default:
break;
}