Silence a warning produced in assertions-disabled mode
authorChris Lattner <sabre@nondot.org>
Tue, 11 Jul 2006 18:31:26 +0000 (18:31 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 11 Jul 2006 18:31:26 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29108 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 1fc4211ea74a885a20d284e9e857e68a47d5dafd..20b1752c20f444142a314343b93feaf4d5b70f5a 100644 (file)
@@ -2902,7 +2902,7 @@ Instruction *InstCombiner::MatchBSwap(BinaryOperator &I) {
   // If they do then *success* we can turn this into a bswap.  Figure out what
   // bswap to make it into.
   Module *M = I.getParent()->getParent()->getParent();
-  const char *FnName;
+  const char *FnName = 0;
   if (I.getType() == Type::UShortTy)
     FnName = "llvm.bswap.i16";
   else if (I.getType() == Type::UIntTy)