summaryrefslogtreecommitdiffstats
path: root/include/clang/Frontend/PrecompiledPreamble.h
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2018-08-17 14:25:10 +0000
committerHaojian Wu <hokein@google.com>2018-08-17 14:25:10 +0000
commitb8333ea1b79511446166134a1b573e79ad9fa917 (patch)
treecec02d096ac2d59ddbceb2755f511dcbbae7369b /include/clang/Frontend/PrecompiledPreamble.h
parentcc56a9650522460610126a9162dc4c54e7d9315e (diff)
[Preamble] Empty preamble is not an error.
Summary: Empty preamble is valid for source file which doesn't have any preprocessor and #includes. This patch makes clang treat an empty preamble as a normal preamble. Check: ninja check-clang A testcase is added in https://reviews.llvm.org/D50627. Reviewers: ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D50628 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@340029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PrecompiledPreamble.h')
-rw-r--r--include/clang/Frontend/PrecompiledPreamble.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/clang/Frontend/PrecompiledPreamble.h b/include/clang/Frontend/PrecompiledPreamble.h
index 6abdbe3a1e..e2855fbdf2 100644
--- a/include/clang/Frontend/PrecompiledPreamble.h
+++ b/include/clang/Frontend/PrecompiledPreamble.h
@@ -286,8 +286,7 @@ public:
};
enum class BuildPreambleError {
- PreambleIsEmpty = 1,
- CouldntCreateTempFile,
+ CouldntCreateTempFile = 1,
CouldntCreateTargetInfo,
BeginSourceFileFailed,
CouldntEmitPCH