diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-10-21 19:18:31 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-10-21 19:18:31 +0000 |
commit | ad65f10d75716a63c6795868063d9738cb2972da (patch) | |
tree | 9ce059663b9276c8e1cdcecea2bcc329271cbb6e /llvm/lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 980d4994b271d647f1357e93c394aeadd4424722 (diff) | |
download | bcm5719-llvm-ad65f10d75716a63c6795868063d9738cb2972da.tar.gz bcm5719-llvm-ad65f10d75716a63c6795868063d9738cb2972da.zip |
Fix the build in DIE.cpp with MSVC 2010
llvm-svn: 193106
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DIE.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp index 956ef8e7e88..f9110c00c37 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp @@ -34,8 +34,10 @@ using namespace llvm; /// Profile - Used to gather unique data for the abbreviation folding set. /// void DIEAbbrevData::Profile(FoldingSetNodeID &ID) const { - ID.AddInteger(Attribute); - ID.AddInteger(Form); + // Explicitly cast to an integer type for which FoldingSetNodeID has + // overloads. Otherwise MSVC 2010 thinks this call is ambiguous. + ID.AddInteger(unsigned(Attribute)); + ID.AddInteger(unsigned(Form)); } //===----------------------------------------------------------------------===// @@ -45,7 +47,7 @@ void DIEAbbrevData::Profile(FoldingSetNodeID &ID) const { /// Profile - Used to gather unique data for the abbreviation folding set. /// void DIEAbbrev::Profile(FoldingSetNodeID &ID) const { - ID.AddInteger(Tag); + ID.AddInteger(unsigned(Tag)); ID.AddInteger(ChildrenFlag); // For each attribute description. |