From 321bac621ed3cf88fdb4c157fb9e82b7dbad7b47 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Wed, 31 Jul 2019 00:12:00 +0000 Subject: [PATCH] NFCI, optimize layout of FileEntry The reordering of the UID field makes the size of a FileEntry 8 bytes smaller on 64bit platforms. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367371 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Basic/FileManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index 96983475f4..f38664ab29 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -64,8 +64,8 @@ class FileEntry { off_t Size; // File size in bytes. time_t ModTime; // Modification time of file. const DirectoryEntry *Dir; // Directory file lives in. - unsigned UID; // A unique (small) ID for the file. llvm::sys::fs::UniqueID UniqueID; + unsigned UID; // A unique (small) ID for the file. bool IsNamedPipe; bool IsValid; // Is this \c FileEntry initialized and valid? -- 2.50.1