[llvm] r362165 - [Remarks] Fix usage of enum class
Francis Visoiu Mistrih via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 15:01:57 PDT 2019
Author: thegameg
Date: Thu May 30 15:01:56 2019
New Revision: 362165
URL: http://llvm.org/viewvc/llvm-project?rev=362165&view=rev
Log:
[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
Modified:
llvm/trunk/include/llvm/Remarks/RemarkSerializer.h
llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp
Modified: llvm/trunk/include/llvm/Remarks/RemarkSerializer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Remarks/RemarkSerializer.h?rev=362165&r1=362164&r2=362165&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Remarks/RemarkSerializer.h (original)
+++ llvm/trunk/include/llvm/Remarks/RemarkSerializer.h Thu May 30 15:01:56 2019
@@ -56,7 +56,7 @@ struct YAMLSerializer : public Serialize
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;
Modified: llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp?rev=362165&r1=362164&r2=362165&view=diff
==============================================================================
--- llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp (original)
+++ llvm/trunk/lib/Remarks/YAMLRemarkSerializer.cpp Thu May 30 15:01:56 2019
@@ -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();
}
More information about the llvm-commits
mailing list