diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-28 16:26:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-03-28 16:26:16 +0000 |
commit | 94cf910ac2d1719c1dfc163bbec3953f12efdf6f (patch) | |
tree | c0b5dd17d1deb50bba312d835a50b84e2b27126d | |
parent | 697462881c4b9b704c7859f4bab0a6116c684bb1 (diff) |
These are all simple pointer wrappers. Pass them by value.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178247 91177308-0d34-0410-b5e6-96231b3b80d8
-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(); } }; |