[llvm-branch-commits] [cfe-branch] r100520 - /cfe/branches/release_27/lib/Checker/BugReporter.cpp

Tanya Lattner tonic at nondot.org
Mon Apr 5 22:09:03 PDT 2010


Author: tbrethou
Date: Tue Apr  6 00:09:03 2010
New Revision: 100520

URL: http://llvm.org/viewvc/llvm-project?rev=100520&view=rev
Log:
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.


Modified:
    cfe/branches/release_27/lib/Checker/BugReporter.cpp

Modified: cfe/branches/release_27/lib/Checker/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_27/lib/Checker/BugReporter.cpp?rev=100520&r1=100519&r2=100520&view=diff
==============================================================================
--- cfe/branches/release_27/lib/Checker/BugReporter.cpp (original)
+++ cfe/branches/release_27/lib/Checker/BugReporter.cpp Tue Apr  6 00:09:03 2010
@@ -40,7 +40,7 @@
 // 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))





More information about the llvm-branch-commits mailing list