[llvm-commits] warnings in release-asserts mode
Nick Lewycky
nicholas at mxc.ca
Sun Mar 8 14:22:34 PDT 2009
I recently had occasion to do a Release-Asserts build, and saw a few
warnings that don't show up in Debug. Here they are if anyone's
interested in taking a look at them:
llvm[2]: Compiling DAGCombiner.cpp for Release-Asserts build
DAGCombiner.cpp: In member function
‘llvm::SDValue<unnamed>::DAGCombiner::FindBetterChain(llvm::SDNode*,
llvm::SDValue)’:
DAGCombiner.cpp:6058: warning: ‘SrcValueOffset’ may be used
uninitialized in this function
DAGCombiner.cpp:6058: note: ‘SrcValueOffset’ was declared here
DAGCombiner.cpp:6057: warning: ‘SrcValue’ may be used uninitialized in
this function
DAGCombiner.cpp:6057: note: ‘SrcValue’ was declared here
DAGCombiner.cpp:6056: warning: ‘Size’ may be used uninitialized in this
function
DAGCombiner.cpp:6056: note: ‘Size’ was declared here
DAGCombiner.cpp:6086: warning: ‘OpSrcValueOffset’ may be used
uninitialized in this function
DAGCombiner.cpp:6086: note: ‘OpSrcValueOffset’ was declared here
DAGCombiner.cpp:6085: warning: ‘OpSrcValue’ may be used uninitialized in
this function
DAGCombiner.cpp:6085: note: ‘OpSrcValue’ was declared here
DAGCombiner.cpp:6084: warning: ‘OpSize’ may be used uninitialized in
this function
DAGCombiner.cpp:6084: note: ‘OpSize’ was declared here
...
llvm[3]: Compiling X86ISelLowering.cpp for Release-Asserts build
X86ISelLowering.cpp: In member function ‘llvm::SDValue
llvm::X86TargetLowering::LowerGlobalTLSAddress(llvm::SDValue,
llvm::SelectionDAG&)’:
X86ISelLowering.cpp:4852: warning: control reaches end of non-void function
...
PPCRegisterInfo.cpp: In member function ‘virtual void
llvm::PPCRegisterInfo::emitEpilogue(llvm::MachineFunction&,
llvm::MachineBasicBlock&) const’:
PPCRegisterInfo.cpp:1391: warning: unused variable ‘JumpTarget’
PPCRegisterInfo.cpp:1405: warning: unused variable ‘JumpTarget’
...
MipsInstrInfo.cpp: In member function ‘virtual llvm::MachineInstr*
llvm::MipsInstrInfo::foldMemoryOperandImpl(llvm::MachineFunction&,
llvm::MachineInstr*, const llvm::SmallVectorImpl<unsigned int>&, int)
const’:
MipsInstrInfo.cpp:320: warning: ‘LoadOpc’ may be used uninitialized in
this function
MipsInstrInfo.cpp:320: warning: ‘StoreOpc’ may be used uninitialized in
this function
MipsInstrInfo.cpp: In member function ‘virtual void
llvm::MipsInstrInfo::storeRegToStackSlot(llvm::MachineBasicBlock&,
llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, bool, int, const
llvm::TargetRegisterClass*) const’:
MipsInstrInfo.cpp:192: warning: ‘Opc’ may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function ‘virtual void
llvm::MipsInstrInfo::loadRegFromAddr(llvm::MachineFunction&, unsigned
int, llvm::SmallVectorImpl<llvm::MachineOperand>&, const
llvm::TargetRegisterClass*, llvm::SmallVectorImpl<llvm::MachineInstr*>&)
const’:
MipsInstrInfo.cpp:263: warning: ‘Opc’ may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function ‘virtual void
llvm::MipsInstrInfo::storeRegToAddr(llvm::MachineFunction&, unsigned
int, bool, llvm::SmallVectorImpl<llvm::MachineOperand>&, const
llvm::TargetRegisterClass*, llvm::SmallVectorImpl<llvm::MachineInstr*>&)
const’:
MipsInstrInfo.cpp:216: warning: ‘Opc’ may be used uninitialized in this
function
MipsInstrInfo.cpp: In member function ‘virtual void
llvm::MipsInstrInfo::loadRegFromStackSlot(llvm::MachineBasicBlock&,
llvm::ilist_iterator<llvm::MachineInstr>, unsigned int, int, const
llvm::TargetRegisterClass*) const’:
MipsInstrInfo.cpp:242: warning: ‘Opc’ may be used uninitialized in this
function
Nick
More information about the llvm-commits
mailing list