fix a warning in the optimized build
authorChris Lattner <sabre@nondot.org>
Tue, 29 Mar 2005 15:13:27 +0000 (15:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 29 Mar 2005 15:13:27 +0000 (15:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20920 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelPattern.cpp

index fcd8f438f109e632dd7651230d5ca720c1ec97dc..d408db38ca226679dc6d21a497622dad91ac6e6f 100644 (file)
@@ -729,6 +729,8 @@ unsigned ISel::SelectExpr(SDOperand N) {
     if (sext && byte) {
       Tmp3 = Result;
       Result = MakeReg(MVT::i32);
+    } else {
+      Tmp3 = 0;  // Silence GCC warning.
     }
     if(Address.getOpcode() == ISD::FrameIndex) {
       BuildMI(BB, Opc, 2, Result)