squash warnings.
authorDevang Patel <dpatel@apple.com>
Mon, 5 Jan 2009 17:31:22 +0000 (17:31 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 5 Jan 2009 17:31:22 +0000 (17:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61707 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
lib/CodeGen/SimpleRegisterCoalescing.cpp
lib/Target/DarwinTargetAsmInfo.cpp
lib/Target/ELFTargetAsmInfo.cpp
lib/Target/TargetAsmInfo.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86TargetAsmInfo.cpp

index 3daa79ed71d68e520ce0a84f2b858586cd2518b4..4f17164ce6a7590b703101911a8758aad4d74297 100644 (file)
@@ -2019,6 +2019,7 @@ void SelectionDAGLowering::visitSwitch(SwitchInst &SI) {
   size_t numCmps = Clusterify(Cases, SI);
   DEBUG(errs() << "Clusterify finished. Total clusters: " << Cases.size()
                << ". Total compares: " << numCmps << '\n');
+  numCmps = 0;
 
   // Get the Value to be switched on and default basic blocks, which will be
   // inserted into CaseBlock records, representing basic blocks in the binary
index cfac82613ff83282311e368b2606866d4222da9c..cfc77eef046157c9ba0311d896c646f3344d05a6 100644 (file)
@@ -1662,7 +1662,7 @@ bool SimpleRegisterCoalescing::SimpleJoin(LiveInterval &LHS, LiveInterval &RHS){
   // optimize for it: if there is more than one value, we merge them all into
   // the lowest numbered one, then handle the interval as if we were merging
   // with one value number.
-  VNInfo *LHSValNo;
+  VNInfo *LHSValNo = NULL;
   if (EliminatedLHSVals.size() > 1) {
     // Loop through all the equal value numbers merging them into the smallest
     // one.
index cb73d31d4bd3af5d59fc37d386c471648fa2bd6d..7121cab49334731f08fa85916afd0f4c411600c6 100644 (file)
@@ -108,6 +108,7 @@ DarwinTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
   }
 
   // FIXME: Do we have any extra special weird cases?
+  return NULL;
 }
 
 const Section*
index 47727d111f12b6ab5c5ccd62954e71228bfb3a00..76e0b1b4af5950169cf37f3b010960d566f3ba06 100644 (file)
@@ -86,6 +86,8 @@ ELFTargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV) const {
     }
   } else
     assert(0 && "Unsupported global");
+
+  return NULL;
 }
 
 const Section*
index 5cf298aa95ba58a481aefbe0831d0c965d5f8f22..0cf969cf3a834ab694aa98dc7d09e5182528e9bb 100644 (file)
@@ -342,6 +342,7 @@ TargetAsmInfo::UniqueSectionForGlobal(const GlobalValue* GV,
    default:
     assert(0 && "Unknown section kind");
   }
+  return NULL;
 }
 
 const Section*
index 5ed6342bb1b435cd3fd340a95e5ee89c3abe8574..c282f918ead98c4afc6d871a2828628b10e4061f 100644 (file)
@@ -1255,7 +1255,7 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDValue Op, SelectionDAG &DAG) {
     
     if (VA.isRegLoc()) {
       MVT RegVT = VA.getLocVT();
-      TargetRegisterClass *RC;
+      TargetRegisterClass *RC = NULL;
       if (RegVT == MVT::i32)
         RC = X86::GR32RegisterClass;
       else if (Is64Bit && RegVT == MVT::i64)
index de655e732b23f6bbab53a3c03ee4c4fed4393c3e..1cf859b3b88c6c0ef182c8d275e231bfa8e75113 100644 (file)
@@ -319,6 +319,7 @@ X86COFFTargetAsmInfo::UniqueSectionForGlobal(const GlobalValue* GV,
    default:
     assert(0 && "Unknown section kind");
   }
+  return NULL;
 }
 
 std::string X86COFFTargetAsmInfo::printSectionFlags(unsigned flags) const {