My previous change in include/llvm-c/Core.h that introduced 64-bit Attributes (r148553) caused a warning <div>while building with MSVC. <a href="http://llvm.org/bugs/show_bug.cgi?id=11828">http://llvm.org/bugs/show_bug.cgi?id=11828</a></div>
<div>The following patch fixes the problem (use "static const uint64_t" instead of enum). </div><div>Ok to commit? </div><div><br></div><div>--kcc </div><div><br></div><div><div>Index: include/llvm-c/Core.h</div>
<div>===================================================================</div><div>--- include/llvm-c/Core.h  (revision 148708)</div><div>+++ include/llvm-c/Core.h  (working copy)</div><div>@@ -92,7 +92,7 @@</div><div> /** Used to get the users and usees of a Value. See the llvm::Use class. */</div>
<div> typedef struct LLVMOpaqueUse *LLVMUseRef;</div><div> </div><div>-typedef enum {</div><div>+static const uint64_t</div><div>     LLVMZExtAttribute       = 1<<0,</div><div>     LLVMSExtAttribute       = 1<<1,</div>
<div>     LLVMNoReturnAttribute   = 1<<2,</div><div>@@ -119,8 +119,8 @@</div><div>     LLVMReturnsTwice = 1 << 29,</div><div>     LLVMUWTable = 1 << 30,</div><div>     LLVMNonLazyBind = 1U << 31,</div>
<div>-    LLVMAddressSafety = 1ULL << 32</div><div>-} LLVMAttribute;</div><div>+    LLVMAddressSafety = 1ULL << 32;</div><div>+typedef uint64_t LLVMAttribute;</div><div> </div><div> typedef enum {</div><div>   /* Terminator Instructions */</div>
</div><div><br></div>