From 0bdfece37414ceac7440a7f10f20142e8269f362 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 31 Jul 2015 01:39:23 +0000 Subject: [PATCH] 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 --- lib/Serialization/ASTWriter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.40.0