[Remarks] Fix usage of enum class
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 30 May 2019 22:01:56 +0000 (22:01 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Thu, 30 May 2019 22:01:56 +0000 (22:01 +0000)
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

llvm/include/llvm/Remarks/RemarkSerializer.h
llvm/lib/Remarks/YAMLRemarkSerializer.cpp

index 7431ace..def5c2e 100644 (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;
index 47fef5d..14de44f 100644 (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();
 }