[Remarks] Fix usage of enum class

Breaks the build on some compilers:

http://lab.llvm.org:8011/builders/clang-cmake-x86_64-avx2-linux/builds/9720/steps/build%20stage%201/logs/stdio

llvm-svn: 362165
This commit is contained in:
Francis Visoiu Mistrih 2019-05-30 22:01:56 +00:00
parent dbd30262cb
commit 0e5f4cc52c
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ struct YAMLSerializer : public Serializer {
yaml::Output YAMLOutput;
YAMLSerializer(raw_ostream &OS,
UseStringTable UseStringTable = UseStringTable::No);
UseStringTable UseStringTable = remarks::UseStringTable::No);
/// Emit a remark to the stream.
void emit(const Remark &Remark) override;

View File

@ -154,7 +154,7 @@ LLVM_YAML_IS_SEQUENCE_VECTOR(Argument)
YAMLSerializer::YAMLSerializer(raw_ostream &OS, UseStringTable UseStringTable)
: Serializer(OS), YAMLOutput(OS, reinterpret_cast<void *>(this)) {
if (UseStringTable == UseStringTable::Yes || RemarksYAMLStringTable)
if (UseStringTable == remarks::UseStringTable::Yes || RemarksYAMLStringTable)
StrTab.emplace();
}