summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTStructuralEquivalence.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-04-04 06:31:21 +0000
committerEric Fiselier <eric@efcs.ca>2018-04-04 06:31:21 +0000
commit2a0ea0105dde05ea7e1f2d011df47e609d6f8784 (patch)
tree0f4d52a7239f4b53b8e081ee6dda29be5dceaab1 /clang/lib/AST/ASTStructuralEquivalence.cpp
parent613af1f7caed6a2a91f6c4ea46c3f9671ae30614 (diff)
downloadbcm5719-llvm-2a0ea0105dde05ea7e1f2d011df47e609d6f8784.tar.gz
bcm5719-llvm-2a0ea0105dde05ea7e1f2d011df47e609d6f8784.zip
Fix typo in ASTStructuralEquivalence.cpp for UnaryTransform types.
Previously UnaryTransformType nodes were comparing the same node for structural equivalence. This was due to a typo where T1 was on both sides of the comparison. This patch corrects that typo. Unfortunately I couldn't find a way to test this change. It seems that currently UnaryTransform nodes are never actually checked for equivalence, only their canonical types are. None the less, this correction seemed appropriate. llvm-svn: 329151
Diffstat (limited to 'clang/lib/AST/ASTStructuralEquivalence.cpp')
-rw-r--r--clang/lib/AST/ASTStructuralEquivalence.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTStructuralEquivalence.cpp b/clang/lib/AST/ASTStructuralEquivalence.cpp
index a563c7e2fa0..da0a26e40b1 100644
--- a/clang/lib/AST/ASTStructuralEquivalence.cpp
+++ b/clang/lib/AST/ASTStructuralEquivalence.cpp
@@ -501,7 +501,7 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
case Type::UnaryTransform:
if (!IsStructurallyEquivalent(
Context, cast<UnaryTransformType>(T1)->getUnderlyingType(),
- cast<UnaryTransformType>(T1)->getUnderlyingType()))
+ cast<UnaryTransformType>(T2)->getUnderlyingType()))
return false;
break;
OpenPOWER on IntegriCloud