summaryrefslogtreecommitdiff
path: root/contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-08-02 17:59:51 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-08-02 17:59:51 +0000
commit7cb19e8bd99e7a7f926ad363aa2b4dd58fb8e380 (patch)
tree8d5195e81c160c2a7c7d93674e053a67d0f31092 /contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp
parent1c4688a8498fea1db507842ff8dedaacad8ef77b (diff)
parentc7e70c433efc6953dc3888b9fbf9f3512d7da2b0 (diff)
Notes
Diffstat (limited to 'contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp')
-rw-r--r--contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp b/contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp
index 7853ab28810b..df3c2be9a2e2 100644
--- a/contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp
+++ b/contrib/llvm/tools/clang/lib/AST/ASTStructuralEquivalence.cpp
@@ -505,7 +505,7 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
if (Proto1->getTypeQuals() != Proto2->getTypeQuals())
return false;
-
+
// Check exceptions, this information is lost in canonical type.
const auto *OrigProto1 =
cast<FunctionProtoType>(OrigT1.getDesugaredType(Context.FromCtx));
@@ -513,7 +513,7 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
cast<FunctionProtoType>(OrigT2.getDesugaredType(Context.ToCtx));
auto Spec1 = OrigProto1->getExceptionSpecType();
auto Spec2 = OrigProto2->getExceptionSpecType();
-
+
if (Spec1 != Spec2)
return false;
if (Spec1 == EST_Dynamic) {