summaryrefslogtreecommitdiffstats
path: root/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-12-07 01:54:38 +0000
committerJordan Rose <jordan_rose@apple.com>2012-12-07 01:54:38 +0000
commit5204d9e2fe0ea4e4b9c85087e355021c93221764 (patch)
treec34290bd5a60e449e20161279e4899a6bbfa5829 /include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
parentde780d44244c93fbce059262ccebc8bae692f9ca (diff)
[analyzer] Remove possible pessimizations from r169563.
Thanks for reminding me about copy-elision, David. Passing references here doesn't help when we could get move construction in C++11. If we really cared, we'd use std::swap to steal the reference from the temporary arg, but it's probably not /that/ critical outside of Profile anyway. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
index 1570d95737..1000646841 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
@@ -142,12 +142,10 @@ private:
protected:
friend class CallEventManager;
- CallEvent(const Expr *E, const ProgramStateRef &state,
- const LocationContext *lctx)
+ CallEvent(const Expr *E, ProgramStateRef state, const LocationContext *lctx)
: State(state), LCtx(lctx), Origin(E), RefCount(0) {}
- CallEvent(const Decl *D, const ProgramStateRef &state,
- const LocationContext *lctx)
+ CallEvent(const Decl *D, ProgramStateRef state, const LocationContext *lctx)
: State(state), LCtx(lctx), Origin(D), RefCount(0) {}
// DO NOT MAKE PUBLIC