An AsmPrinter should always be provided to the method because some forms depend on its parameters. The only place in the codebase which passed a nullptr value was found in the unit tests, so the patch updates it to use some dummy AsmPrinter instead.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Event Timeline
Comment Actions
D87008 added creating a test AsmPrinter to the CodeGen unit tests, so it is now possible to fix the DIEHashTest.MemberBlock so that it provides an instance to the tested class.
Comment Actions
Looks good - thanks!
llvm/unittests/CodeGen/DIEHashTest.cpp | ||
---|---|---|
34–39 ↗ | (On Diff #292203) | I'd probably roll this into getAsmPrinter - but up to you. |
llvm/unittests/CodeGen/DIEHashTest.cpp | ||
---|---|---|
34–39 ↗ | (On Diff #292203) | ASSERT_THAT_EXPECTED breaks compilation if placed in a non-void function. |
llvm/unittests/CodeGen/DIEHashTest.cpp | ||
---|---|---|
34–39 ↗ | (On Diff #292203) | Fair enough - seems a bit subtle, but I don't have great alternative suggestions. Thanks for explaining! |