diff options
-rw-r--r-- | include/clang/AST/CanonicalType.h | 2 | ||||
-rw-r--r-- | include/clang/AST/Type.h | 2 | ||||
-rw-r--r-- | include/clang/Analysis/CFG.h | 2 | ||||
-rw-r--r-- | include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h index 75f2a3b467..946075739d 100644 --- a/include/clang/AST/CanonicalType.h +++ b/include/clang/AST/CanonicalType.h @@ -353,7 +353,7 @@ namespace llvm { template<typename T> struct simplify_type< ::clang::CanQual<T> > { typedef const T *SimpleType; - static SimpleType getSimplifiedValue(::clang::CanQual<T> &Val) { + static SimpleType getSimplifiedValue(::clang::CanQual<T> Val) { return Val.getTypePtr(); } }; diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 900912d75d..e0402148b5 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -1000,7 +1000,7 @@ namespace llvm { /// to a specific Type class. template<> struct simplify_type< ::clang::QualType> { typedef const ::clang::Type *SimpleType; - static SimpleType getSimplifiedValue(::clang::QualType &Val) { + static SimpleType getSimplifiedValue(::clang::QualType Val) { return Val.getTypePtr(); } }; diff --git a/include/clang/Analysis/CFG.h b/include/clang/Analysis/CFG.h index eb0e18ad84..57f980ef4c 100644 --- a/include/clang/Analysis/CFG.h +++ b/include/clang/Analysis/CFG.h @@ -843,7 +843,7 @@ namespace llvm { /// CFGTerminator to a specific Stmt class. template <> struct simplify_type< ::clang::CFGTerminator> { typedef ::clang::Stmt *SimpleType; - static SimpleType getSimplifiedValue(::clang::CFGTerminator &Val) { + static SimpleType getSimplifiedValue(::clang::CFGTerminator Val) { return Val.getStmt(); } }; diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h index 092b41483d..689d26a9ab 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h @@ -1042,7 +1042,7 @@ namespace llvm { typedef const T *SimpleType; static SimpleType - getSimplifiedValue(clang::ento::CallEventRef<T>& Val) { + getSimplifiedValue(clang::ento::CallEventRef<T> Val) { return Val.getPtr(); } }; |