[cfe-commits] r106277 - /cfe/trunk/include/clang/AST/TypeLoc.h
Gabor Greif
ggreif at gmail.com
Fri Jun 18 03:11:35 PDT 2010
Author: ggreif
Date: Fri Jun 18 05:11:35 2010
New Revision: 106277
URL: http://llvm.org/viewvc/llvm-project?rev=106277&view=rev
Log:
John called for a less surprising cast
Modified:
cfe/trunk/include/clang/AST/TypeLoc.h
Modified: cfe/trunk/include/clang/AST/TypeLoc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/TypeLoc.h?rev=106277&r1=106276&r2=106277&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/TypeLoc.h (original)
+++ cfe/trunk/include/clang/AST/TypeLoc.h Fri Jun 18 05:11:35 2010
@@ -142,7 +142,7 @@
/// \brief Return the TypeLoc for a type source info.
inline TypeLoc TypeSourceInfo::getTypeLoc() const {
- return TypeLoc(Ty, const_cast<TypeSourceInfo*>(this + 1));
+ return TypeLoc(Ty, const_cast<void*>(static_cast<const void*>(this + 1)));
}
/// \brief Wrapper of type source information for a type with
More information about the cfe-commits
mailing list