aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-18 10:11:35 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-18 10:11:35 +0000
commit4ab92891a53adda8c52c1947351371da58e33f64 (patch)
tree52ed5f70b5a434773b9a4bc66ac3d61d88f58ca1
parentc62458f6aead5e4c0d0f4534d52142e7864ba02b (diff)
John called for a less surprising cast
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106277 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/TypeLoc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/TypeLoc.h b/include/clang/AST/TypeLoc.h
index 08b2829f14..ef2b0542e7 100644
--- a/include/clang/AST/TypeLoc.h
+++ b/include/clang/AST/TypeLoc.h
@@ -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