Revert a part of 320489 that was submitted unintentionally.
authorErich Keane <erich.keane@intel.com>
Tue, 12 Dec 2017 16:22:31 +0000 (16:22 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 12 Dec 2017 16:22:31 +0000 (16:22 +0000)
llvm-svn: 320493

clang/lib/Sema/SemaExprCXX.cpp

index 641d583944f1f7a5654d0476803d7879fae51c10..9c842ded1e101fd001b5bad389a92b15af4ab9d8 100644 (file)
@@ -4958,7 +4958,7 @@ static bool EvaluateBinaryTypeTrait(Sema &Self, TypeTrait BTT, QualType LhsT,
     EnterExpressionEvaluationContext Unevaluated(
         Self, Sema::ExpressionEvaluationContext::Unevaluated);
     Sema::SFINAETrap SFINAE(Self, /*AccessCheckingSFINAE=*/true);
-    Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl()); {
+    Sema::ContextRAII TUContext(Self, Self.Context.getTranslationUnitDecl());
     ExprResult Result = Self.BuildBinOp(/*S=*/nullptr, KeyLoc, BO_Assign, &Lhs,
                                         &Rhs);
     if (Result.isInvalid() || SFINAE.hasErrorOccurred())
@@ -4981,7 +4981,6 @@ static bool EvaluateBinaryTypeTrait(Sema &Self, TypeTrait BTT, QualType LhsT,
 
     llvm_unreachable("unhandled type trait");
     return false;
-    }
   }
     default: llvm_unreachable("not a BTT");
   }