Silence a warning
authorAnton Korobeynikov <asl@math.spbu.ru>
Fri, 9 Nov 2007 19:06:14 +0000 (19:06 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Fri, 9 Nov 2007 19:06:14 +0000 (19:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43954 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetData.cpp

index 5a189205ed9348af44a6cb09fa37334042b32c8e..8c466543facc3f5784e427262029386ece423970 100644 (file)
@@ -211,7 +211,7 @@ void TargetData::init(const std::string &TargetDescription) {
     case 'f':
     case 'a':
     case 's': {
-      AlignTypeEnum align_type;
+      AlignTypeEnum align_type = STACK_ALIGN; // Dummy init, silence warning
       switch(*p) {
         case 'i': align_type = INTEGER_ALIGN; break;
         case 'v': align_type = VECTOR_ALIGN; break;