diff options
-rw-r--r-- | include/clang/AST/CanonicalType.h | 2 | ||||
-rw-r--r-- | include/clang/AST/Type.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h index b1962b7b9e..2d67a39f95 100644 --- a/include/clang/AST/CanonicalType.h +++ b/include/clang/AST/CanonicalType.h @@ -347,7 +347,7 @@ template<typename T> struct simplify_type<const ::clang::CanQual<T> > { typedef T* SimpleType; static SimpleType getSimplifiedValue(const ::clang::CanQual<T> &Val) { - return Val.getTypePtrOrNull(); + return Val.getTypePtr(); } }; template<typename T> diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 5c67dd8b4f..81230b7a54 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -771,7 +771,7 @@ namespace llvm { template<> struct simplify_type<const ::clang::QualType> { typedef ::clang::Type* SimpleType; static SimpleType getSimplifiedValue(const ::clang::QualType &Val) { - return Val.getTypePtrOrNull(); + return Val.getTypePtr(); } }; template<> struct simplify_type< ::clang::QualType> |