Don't assume SelectionDAG is non-null as the targets can use it with a null pointer.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Would this be easier to follow if we overloaded printMemOperand with a variant that took the variables we're declaring here (M, MF, etc) and simply called into it? The "if (G)" condition would set them up and the "else" side would just pass null pointers.
In any case, LGTM. Feel free to commit once you've tried that and decided which is better.