Add workaround to build scoped enums with VS2015. NFCI.

We need this as we still have internal build bots on VS2015.

llvm-svn: 356532
This commit is contained in:
Douglas Yung 2019-03-20 00:26:56 +00:00
parent 97d104cbee
commit 6080a6fb19
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ enum class Type {
/// A remark type used for both emission and parsing.
struct Remark {
/// The type of the remark.
enum Type RemarkType = Type::Unknown;
enum class Type RemarkType = Type::Unknown;
/// Name of the pass that triggers the emission of this remark.
StringRef PassName;

View File

@ -21,7 +21,7 @@ struct ParserImpl {
// The parser kind. This is used as a tag to safely cast between
// implementations.
enum Kind ParserKind;
enum class Kind ParserKind;
};
} // end namespace remarks
} // end namespace llvm