[lldb-dev] [Bug 31612] New: Cannot eval function which returns empty struct. Error [IRForTarget]: Size of result type 'struct foo { }' couldn't be determined

via lldb-dev lldb-dev at lists.llvm.org
Wed Jan 11 14:00:44 PST 2017


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 at lists.llvm.org
          Reporter: safinaskar at mail.ru
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

root at ideal-os:~# cat /o.cpp
struct foo
{
};

foo
f (void)
{
  return {};
}

int
main (void)
{
  f ();
}
root at ideal-os:~# clang++-3.9 -std=c++11 -g -o /o /o.cpp
root at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20170111/d9940659/attachment.html>


More information about the lldb-dev mailing list