[cfe-commits] r127134 - /cfe/trunk/lib/Sema/SemaType.cpp
Abramo Bagnara
abramo.bagnara at gmail.com
Sun Mar 6 14:48:24 PST 2011
Author: abramo
Date: Sun Mar 6 16:48:24 2011
New Revision: 127134
URL: http://llvm.org/viewvc/llvm-project?rev=127134&view=rev
Log:
Used a nicer cast.
Modified:
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=127134&r1=127133&r2=127134&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Sun Mar 6 16:48:24 2011
@@ -2383,7 +2383,7 @@
case NestedNameSpecifier::Identifier:
assert(isa<DependentNameType>(ClsTy) && "Unexpected TypeLoc");
{
- DependentNameTypeLoc DNTLoc = *cast<DependentNameTypeLoc>(&ClsTL);
+ DependentNameTypeLoc DNTLoc = cast<DependentNameTypeLoc>(ClsTL);
DNTLoc.setKeywordLoc(SourceLocation());
DNTLoc.setQualifierLoc(NNSLoc.getPrefix());
DNTLoc.setNameLoc(NNSLoc.getLocalBeginLoc());
More information about the cfe-commits
mailing list