summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2015-07-31 01:39:23 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2015-07-31 01:39:23 +0000
commit403cbcb84d8b8f459aaa7351472fee8b8df3e391 (patch)
treee23cd0a7afa704b86ec820ec9a4a92432a36bb2b /clang/lib/Serialization/ASTWriter.cpp
parentfb7d8d9d06e3bd24eb830fb7d3f3fb675043ec8a (diff)
downloadbcm5719-llvm-403cbcb84d8b8f459aaa7351472fee8b8df3e391.tar.gz
bcm5719-llvm-403cbcb84d8b8f459aaa7351472fee8b8df3e391.zip
Make sure the 2 method calls are sequenced.
llvm-svn: 243727
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index f21b173c1dd..7dd16e986a7 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -1074,7 +1074,8 @@ void ASTWriter::WriteBlockInfoBlock() {
/// \return \c true if the path was changed.
static bool cleanPathForOutput(FileManager &FileMgr,
SmallVectorImpl<char> &Path) {
- return FileMgr.makeAbsolutePath(Path) | FileMgr.removeDotPaths(Path);
+ bool Changed = FileMgr.makeAbsolutePath(Path);
+ return Changed | FileMgr.removeDotPaths(Path);
}
/// \brief Adjusts the given filename to only write out the portion of the
OpenPOWER on IntegriCloud