projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e87a21
)
[Analyzer] [Tests] Fixing typo from the previous commit.
author
George Karpenkov
<ekarpenkov@apple.com>
Fri, 27 Oct 2017 22:52:36 +0000
(22:52 +0000)
committer
George Karpenkov
<ekarpenkov@apple.com>
Fri, 27 Oct 2017 22:52:36 +0000
(22:52 +0000)
Can not open a non-existent file with r+.
llvm-svn: 316808
clang/utils/analyzer/SATestBuild.py
patch
|
blob
|
history
diff --git
a/clang/utils/analyzer/SATestBuild.py
b/clang/utils/analyzer/SATestBuild.py
index
ed700c0
..
3c694fb
100755
(executable)
--- a/
clang/utils/analyzer/SATestBuild.py
+++ b/
clang/utils/analyzer/SATestBuild.py
@@
-374,7
+374,7
@@
def buildProject(Dir, SBOutputDir, ProjectBuildMode, IsReferenceBuild):
os.makedirs(os.path.join(SBOutputDir, LogFolderName))
# Build and analyze the project.
- with open(BuildLogPath, "
r+b
") as PBuildLogFile:
+ with open(BuildLogPath, "
wb+
") as PBuildLogFile:
if (ProjectBuildMode == 1):
downloadAndPatch(Dir, PBuildLogFile)
runCleanupScript(Dir, PBuildLogFile)