John called for a less surprising cast

llvm-svn: 106277
This commit is contained in:
Gabor Greif
2010-06-18 10:11:35 +00:00
parent 108f5a2748
commit 11614bcfe2

View File

@@ -142,7 +142,7 @@ private:
/// \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