mirror of https://github.com/microsoft/clang.git
Revert a part of 320489 that was submitted unintentionally.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320493 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
133cba2f92
commit
cb61fc53dc
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue