From b26833d51375298bc05e5817e29da8f59d62fbb2 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 30 May 2018 09:04:57 +0000 Subject: [PATCH] Set underlying type for enum with GNU_PROPERTY_X86_FEATURE_1_AND constant The constant was causing a -Wc++11-narrowing error when compiled with clang-cl (see PR30776). llvm-svn: 333520 --- include/llvm/BinaryFormat/ELF.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/BinaryFormat/ELF.h b/include/llvm/BinaryFormat/ELF.h index b5664990e5d..8fb1e87661f 100644 --- a/include/llvm/BinaryFormat/ELF.h +++ b/include/llvm/BinaryFormat/ELF.h @@ -1305,7 +1305,7 @@ enum { }; // Property types used in GNU_PROPERTY_TYPE_0 notes. -enum { +enum : unsigned { GNU_PROPERTY_STACK_SIZE = 1, GNU_PROPERTY_NO_COPY_ON_PROTECTED = 2, GNU_PROPERTY_X86_FEATURE_1_AND = 0xc0000002