[llvm-commits] [llvm] r91232 - /llvm/trunk/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Dec 12 17:00:33 PST 2009
Author: asl
Date: Sat Dec 12 19:00:32 2009
New Revision: 91232
URL: http://llvm.org/viewvc/llvm-project?rev=91232&view=rev
Log:
Do not allow uninitialize access during debug printing
Modified:
llvm/trunk/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp?rev=91232&r1=91231&r2=91232&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/MSP430ISelDAGToDAG.cpp Sat Dec 12 19:00:32 2009
@@ -86,10 +86,10 @@
void dump() {
errs() << "MSP430ISelAddressMode " << this << '\n';
- if (Base.Reg.getNode() != 0) {
+ if (BaseType == RegBase && Base.Reg.getNode() != 0) {
errs() << "Base.Reg ";
Base.Reg.getNode()->dump();
- } else {
+ } else if (BaseType == FrameIndexBase) {
errs() << " Base.FrameIndex " << Base.FrameIndex << '\n';
}
errs() << " Disp " << Disp << '\n';
More information about the llvm-commits
mailing list