[llvm] r209226 - Fix test breakage introduced in r209223.
David Blaikie
dblaikie at gmail.com
Tue May 20 11:36:35 PDT 2014
Author: dblaikie
Date: Tue May 20 13:36:35 2014
New Revision: 209226
URL: http://llvm.org/viewvc/llvm-project?rev=209226&view=rev
Log:
Fix test breakage introduced in r209223.
Oops, broke the broken enum constants again.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=209226&r1=209225&r2=209226&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Tue May 20 13:36:35 2014
@@ -759,7 +759,8 @@ static bool isUnsignedDIType(DwarfDebug
return true;
assert(T == dwarf::DW_TAG_typedef || T == dwarf::DW_TAG_const_type ||
T == dwarf::DW_TAG_volatile_type ||
- T == dwarf::DW_TAG_restrict_type);
+ T == dwarf::DW_TAG_restrict_type ||
+ T == dwarf::DW_TAG_enumeration_type);
if (DITypeRef Deriv = DTy.getTypeDerivedFrom())
return isUnsignedDIType(DD, DD->resolve(Deriv));
// FIXME: Enums without a fixed underlying type have unknown signedness
More information about the llvm-commits
mailing list