Fix SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c, and hopefully
authorChris Lattner <sabre@nondot.org>
Sun, 28 Nov 2004 17:56:47 +0000 (17:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 28 Nov 2004 17:56:47 +0000 (17:56 +0000)
PR449

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18306 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index eb57cced13ee9a7b918b7a6aa7c691b2de7c1763..2eaebad4a678233f8f9cdb180c0e8636a4240f17 100644 (file)
@@ -275,13 +275,13 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
 
   const Type *type = CV->getType();
   switch (type->getTypeID()) {
+  case Type::BoolTyID: 
   case Type::UByteTyID: case Type::SByteTyID:
     O << Data8bitsDirective;
     break;
   case Type::UShortTyID: case Type::ShortTyID:
     O << Data16bitsDirective;
     break;
-  case Type::BoolTyID: 
   case Type::PointerTyID:
   case Type::UIntTyID: case Type::IntTyID:
     O << Data32bitsDirective;