Make sure the 2 method calls are sequenced.

llvm-svn: 243727
This commit is contained in:
Argyrios Kyrtzidis 2015-07-31 01:39:23 +00:00
parent fb7d8d9d06
commit 403cbcb84d
1 changed files with 2 additions and 1 deletions

View 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