From: Abramo Bagnara Date: Sun, 6 Mar 2011 22:48:24 +0000 (+0000) Subject: Used a nicer cast. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd9c42ed22fb4f7f865f7d8f8848df84ddf8262c;p=clang Used a nicer cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127134 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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());