summaryrefslogtreecommitdiff
path: root/libcxxabi/src
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
commitce7223368e20f40041bd781cb15583d743ad7ef0 (patch)
tree12e166021536588d97e52f8cc220c0e520822500 /libcxxabi/src
parentb8980b50beeec7bf2e57b61560710a77d36f3be3 (diff)
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
Diffstat (limited to 'libcxxabi/src')
-rw-r--r--libcxxabi/src/demangle/ItaniumDemangle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h
index 2f4d7863245..f992645fb92 100644
--- a/libcxxabi/src/demangle/ItaniumDemangle.h
+++ b/libcxxabi/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;
}