rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land.
Looks good with a test for explicit zero initialization. ================ Comment at: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:3157 + + if (Value.isNullValue()) + continue; ---------------- What about zero constants like: struct Foo { static const int sdm = 0; }; I think isNullValue just compares against zero, so that's not quite right. Maybe structure it as `if ConstantInt / else if ConstantFP / else continue`? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D89072/new/ https://reviews.llvm.org/D89072 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits