summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/BugReporter.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2010-04-06 03:01:56 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2010-04-06 03:01:56 +0000
commit0f290ec0f084d86342b4daa36ec0acf0c269ee1f (patch)
tree3f6cd7e641aacb0e9e0061ca0daa7442d7baf100 /clang/lib/Checker/BugReporter.cpp
parent91ce8e9a5cae10811bf525de27d8115ddc4690c2 (diff)
downloadbcm5719-llvm-0f290ec0f084d86342b4daa36ec0acf0c269ee1f.tar.gz
bcm5719-llvm-0f290ec0f084d86342b4daa36ec0acf0c269ee1f.zip
Fix PR 6725. It looks like the copy constructor gets elided during inlining.
This bug only shows up with GCC 4.4.1 Release-Asserts build. llvm-svn: 100516
Diffstat (limited to 'clang/lib/Checker/BugReporter.cpp')
-rw-r--r--clang/lib/Checker/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/BugReporter.cpp b/clang/lib/Checker/BugReporter.cpp
index 12e61afa101..4475872ee2d 100644
--- a/clang/lib/Checker/BugReporter.cpp
+++ b/clang/lib/Checker/BugReporter.cpp
@@ -58,7 +58,7 @@ void BugReporterContext::addVisitor(BugReporterVisitor* visitor) {
// Helper routines for walking the ExplodedGraph and fetching statements.
//===----------------------------------------------------------------------===//
-static inline const Stmt* GetStmt(ProgramPoint P) {
+static inline const Stmt* GetStmt(const ProgramPoint &P) {
if (const StmtPoint* SP = dyn_cast<StmtPoint>(&P))
return SP->getStmt();
else if (const BlockEdge* BE = dyn_cast<BlockEdge>(&P))
OpenPOWER on IntegriCloud