r213235 - Fix Bug 14061 - scan-build crashes during postprocessing if BUGFILE no longer exists
Sylvestre Ledru
sylvestre at debian.org
Thu Jul 17 01:39:05 PDT 2014
Author: sylvestre
Date: Thu Jul 17 03:39:04 2014
New Revision: 213235
URL: http://llvm.org/viewvc/llvm-project?rev=213235&view=rev
Log:
Fix Bug 14061 - scan-build crashes during postprocessing if BUGFILE no longer exists
Experienced with Thunderbird build
Patch by Matti Niemenmaa
Modified:
cfe/trunk/tools/scan-build/scan-build
Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=213235&r1=213234&r2=213235&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Thu Jul 17 03:39:04 2014
@@ -388,6 +388,10 @@ sub ScanFile {
}
elsif (/<!-- BUGFILE (.*) -->$/) {
$BugFile = abs_path($1);
+ if (!defined $BugFile) {
+ # The file no longer exists: use the original path.
+ $BugFile = $1;
+ }
UpdatePrefix($BugFile);
}
elsif (/<!-- BUGPATHLENGTH (.*) -->$/) {
More information about the cfe-commits
mailing list