mirror of
https://github.com/intel/llvm.git
synced 2026-02-09 01:52:26 +08:00
John called for a less surprising cast
llvm-svn: 106277
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user