https://llvm.org/bugs/show_bug.cgi?id=31612
Bug ID: 31612 Summary: Cannot eval function which returns empty struct. Error [IRForTarget]: Size of result type 'struct foo { }' couldn't be determined Product: lldb Version: 3.9 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: lldb-dev@lists.llvm.org Reporter: safinas...@mail.ru CC: llvm-b...@lists.llvm.org Classification: Unclassified root@ideal-os:~# cat /o.cpp struct foo { }; foo f (void) { return {}; } int main (void) { f (); } root@ideal-os:~# clang++-3.9 -std=c++11 -g -o /o /o.cpp root@ideal-os:~# lldb-3.9 /o (lldb) target create "/o" Current executable set to '/o' (x86_64). (lldb) b main Breakpoint 1: where = o`main + 4 at o.cpp:14, address = 0x00000000004004e4 (lldb) r Process 366 launched: '/o' (x86_64) Process 366 stopped * thread #1: tid = 366, 0x00000000004004e4 o`main + 4 at o.cpp:14, name = 'o', stop reason = breakpoint 1.1 frame #0: 0x00000000004004e4 o`main + 4 at o.cpp:14 (lldb) p f () Error [IRForTarget]: Size of result type 'struct foo { }' couldn't be determined error: The expression could not be prepared to run in the target (lldb) Environment same as in https://llvm.org/bugs/show_bug.cgi?id=31611 -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev