]> granicus.if.org Git - clang/commitdiff
Make sure the 2 method calls are sequenced.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 31 Jul 2015 01:39:23 +0000 (01:39 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 31 Jul 2015 01:39:23 +0000 (01:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243727 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTWriter.cpp

index f21b173c1dd02ef464a238eba9148d2bffb39e43..7dd16e986a7199c163166b1caab625cf6986d2b1 100644 (file)
@@ -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