diff options
author | Melanie Blower <melanie.blower@intel.com> | 2019-11-08 14:18:15 -0800 |
---|---|---|
committer | Melanie Blower <melanie.blower@intel.com> | 2019-11-08 14:18:15 -0800 |
commit | d0b3e73175041306474bfb1914ef565e042fb50a (patch) | |
tree | 0a21cdf0a65e4d63cdcca59b19806f5fac08b78d /clang/lib/Sema/SemaChecking.cpp | |
parent | fe0763d28a572f72007637c7bd097bc19cbb58fc (diff) | |
download | bcm5719-llvm-d0b3e73175041306474bfb1914ef565e042fb50a.tar.gz bcm5719-llvm-d0b3e73175041306474bfb1914ef565e042fb50a.zip |
Revert "Reapply "Fix crash on switch conditions of non-integer types in templates""
This reverts commit 759948467ea3181615d44d80f74ffeb260180fd0.
There were build bot failures in clang-tidy
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 45a3a7f5b00..8322a9bf147 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -14682,8 +14682,6 @@ void Sema::RefersToMemberWithReducedAlignment( bool AnyIsPacked = false; do { QualType BaseType = ME->getBase()->getType(); - if (BaseType->isDependentType()) - return; if (ME->isArrow()) BaseType = BaseType->getPointeeType(); RecordDecl *RD = BaseType->castAs<RecordType>()->getDecl(); |