Skip to content

Commit b466918

Browse files
committed
Merge r100516 from mainline.
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: 100520
1 parent a52223b commit b466918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Checker/BugReporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ BugReporterContext::~BugReporterContext() {
4040
// Helper routines for walking the ExplodedGraph and fetching statements.
4141
//===----------------------------------------------------------------------===//
4242

43-
static inline const Stmt* GetStmt(ProgramPoint P) {
43+
static inline const Stmt* GetStmt(const ProgramPoint &P) {
4444
if (const StmtPoint* SP = dyn_cast<StmtPoint>(&P))
4545
return SP->getStmt();
4646
else if (const BlockEdge* BE = dyn_cast<BlockEdge>(&P))

0 commit comments

Comments
 (0)