[llvm-commits] [123798] Pred needed to be initialized.

bwendlin at apple.com bwendlin at apple.com
Tue Feb 13 15:58:36 PST 2007


Revision: 123798
Author:   bwendlin
Date:     2007-02-13 15:58:36 -0800 (Tue, 13 Feb 2007)

Log Message:
-----------
Pred needed to be initialized. During a "buildit", warnings are
treated as errors.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp

Modified: apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp
===================================================================
--- apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp	2007-02-13 23:55:13 UTC (rev 123797)
+++ apple-local/branches/llvm/gcc/config/i386/llvm-i386.cpp	2007-02-13 23:58:36 UTC (rev 123798)
@@ -455,7 +455,7 @@
                                      v4f32, v4f32, v4f32, Type::Int8Ty, NULL);
     }
     bool flip = false;
-    Value *Pred;
+    Value *Pred = 0;
     switch (FnCode) {
       case IX86_BUILTIN_CMPEQPS:
         Pred = ConstantInt::get(Type::Int8Ty, 0);
@@ -524,7 +524,7 @@
       cmpss = M->getOrInsertFunction("llvm.x86.sse.cmp.ss",
                                      v4f32, v4f32, v4f32, Type::Int8Ty, NULL);
     }
-    Value *Pred;
+    Value *Pred = 0;
     switch (FnCode) {
       case IX86_BUILTIN_CMPEQSS:
         Pred = ConstantInt::get(Type::Int8Ty, 0);
@@ -580,7 +580,7 @@
                                      v2f64, v2f64, v2f64, Type::Int8Ty, NULL);
     }
     bool flip = false;
-    Value *Pred;
+    Value *Pred = 0;
     switch (FnCode) {
       case IX86_BUILTIN_CMPEQPD:
         Pred = ConstantInt::get(Type::Int8Ty, 0);
@@ -648,7 +648,7 @@
       cmpss = M->getOrInsertFunction("llvm.x86.sse2.cmp.sd",
                                      v2f64, v2f64, v2f64, Type::Int8Ty, NULL);
     }
-    Value *Pred;
+    Value *Pred = 0;
     switch (FnCode) {
       case IX86_BUILTIN_CMPEQSD:
         Pred = ConstantInt::get(Type::Int8Ty, 0);





More information about the llvm-commits mailing list