summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclang/utils/scan-build5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build
index 47622bfd509..1aad3ef1186 100755
--- a/clang/utils/scan-build
+++ b/clang/utils/scan-build
@@ -1038,7 +1038,10 @@ while (@ARGV) {
DieDiag("'-o' option requires a target directory name.\n");
}
- $HtmlDir = shift @ARGV;
+ # Construct an absolute path. Uses the current working directory
+ # as a base if the original path was not absolute.
+ $HtmlDir = abs_path(shift @ARGV);
+
next;
}
OpenPOWER on IntegriCloud