From 44ee0a710c59d8e6793189f903bae21c16814324 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 7 Jun 2013 20:31:48 +0000 Subject: Re-commit r183466 with a fix to make the TypeLoc casting machinery work correctly in the presence of qualified types. (I had to change the unittest because it was trying to cast a QualifiedTypeLoc to TemplateSpecializationTypeLoc.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@183563 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/AST/SourceLocationTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unittests/AST') diff --git a/unittests/AST/SourceLocationTest.cpp b/unittests/AST/SourceLocationTest.cpp index 55356f11da..990e6dfc85 100644 --- a/unittests/AST/SourceLocationTest.cpp +++ b/unittests/AST/SourceLocationTest.cpp @@ -159,7 +159,7 @@ class TemplateAngleBracketLocRangeVerifier : public RangeVerifier { protected: virtual SourceRange getRange(const TypeLoc &Node) { TemplateSpecializationTypeLoc T = - Node.castAs(); + Node.getUnqualifiedLoc().castAs(); assert(!T.isNull()); return SourceRange(T.getLAngleLoc(), T.getRAngleLoc()); } -- cgit v1.2.3