[llvm] r183371 - R600OptimizeVectorRegisters.cpp: Tweak a warning. [-Wsometimes-uninitialized]
NAKAMURA Takumi
geek4civic at gmail.com
Wed Jun 5 19:15:12 PDT 2013
Author: chapuni
Date: Wed Jun 5 21:15:12 2013
New Revision: 183371
URL: http://llvm.org/viewvc/llvm-project?rev=183371&view=rev
Log:
R600OptimizeVectorRegisters.cpp: Tweak a warning. [-Wsometimes-uninitialized]
FIXME: Is it false alarm?
Modified:
llvm/trunk/lib/Target/R600/R600OptimizeVectorRegisters.cpp
Modified: llvm/trunk/lib/Target/R600/R600OptimizeVectorRegisters.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600OptimizeVectorRegisters.cpp?rev=183371&r1=183370&r2=183371&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600OptimizeVectorRegisters.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600OptimizeVectorRegisters.cpp Wed Jun 5 21:15:12 2013
@@ -179,7 +179,7 @@ MachineInstr *R600VectorRegMerger::Rebui
unsigned DstReg = MRI->createVirtualRegister(&AMDGPU::R600_Reg128RegClass);
unsigned SubReg = (*It).first;
unsigned Swizzle = (*It).second;
- unsigned Chan;
+ unsigned Chan = 0xDEADBEEF;
for (unsigned j = 0, je = RemapChan.size(); j < je; j++) {
if (RemapChan[j].first == Swizzle) {
Chan = RemapChan[j].second;
More information about the llvm-commits
mailing list