r243727 - Make sure the 2 method calls are sequenced.

Argyrios Kyrtzidis akyrtzi at gmail.com
Thu Jul 30 18:39:23 PDT 2015


Author: akirtzidis
Date: Thu Jul 30 20:39:23 2015
New Revision: 243727

URL: http://llvm.org/viewvc/llvm-project?rev=243727&view=rev
Log:
Make sure the 2 method calls are sequenced.

Modified:
    cfe/trunk/lib/Serialization/ASTWriter.cpp

Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTWriter.cpp?rev=243727&r1=243726&r2=243727&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTWriter.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTWriter.cpp Thu Jul 30 20:39:23 2015
@@ -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





More information about the cfe-commits mailing list