From: Argyrios Kyrtzidis Date: Fri, 31 Jul 2015 01:39:23 +0000 (+0000) Subject: Make sure the 2 method calls are sequenced. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bdfece37414ceac7440a7f10f20142e8269f362;p=clang Make sure the 2 method calls are sequenced. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243727 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index f21b173c1d..7dd16e986a 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/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 &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