[cfe-commits] r100516 - /cfe/trunk/lib/Checker/BugReporter.cpp

Zhongxing Xu xuzhongxing at gmail.com
Mon Apr 5 20:01:56 PDT 2010


Author: zhongxingxu
Date: Mon Apr  5 22:01:56 2010
New Revision: 100516

URL: http://llvm.org/viewvc/llvm-project?rev=100516&view=rev
Log:
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/trunk/lib/Checker/BugReporter.cpp

Modified: cfe/trunk/lib/Checker/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/BugReporter.cpp?rev=100516&r1=100515&r2=100516&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/BugReporter.cpp (original)
+++ cfe/trunk/lib/Checker/BugReporter.cpp Mon Apr  5 22:01:56 2010
@@ -58,7 +58,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 cfe-commits mailing list