From fd9c42ed22fb4f7f865f7d8f8848df84ddf8262c Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Sun, 6 Mar 2011 22:48:24 +0000 Subject: [PATCH] Used a nicer cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127134 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaType.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index efb44df474..9d973237dd 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -2383,7 +2383,7 @@ namespace { case NestedNameSpecifier::Identifier: assert(isa(ClsTy) && "Unexpected TypeLoc"); { - DependentNameTypeLoc DNTLoc = *cast(&ClsTL); + DependentNameTypeLoc DNTLoc = cast(ClsTL); DNTLoc.setKeywordLoc(SourceLocation()); DNTLoc.setQualifierLoc(NNSLoc.getPrefix()); DNTLoc.setNameLoc(NNSLoc.getLocalBeginLoc()); -- 2.40.0