<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/84558>84558</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            ABISysV_ppc64.cpp: fails to build on Ubuntu bionic with  `error: no viable conversion from 'llvm::Expected<uint32_t>' `
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb,
            build-problem
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sylvestre
      </td>
    </tr>
</table>

<pre>
    On Ubuntu s390x:

https://llvm-jenkins.debian.net/job/llvm-toolchain-bionic-binaries/architecture=s390x,distribution=bionic,label=s390x/1588/
```

/opt/sccache//sccache /build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lldb/source/Plugins/ABI/PowerPC -I/build/source/lldb/source/Plugins/ABI/PowerPC -I/build/source/lldb/include -Itools/lldb/include -Iinclude -I/build/source/llvm/include -I/build/source/clang/include -Itools/lldb/../clang/include -I/build/source/lldb/source -Itools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=../../../../ -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O2 -DNDEBUG -g1  -fno-exceptions -funwind-tables -std=c++17 -MD -MT tools/lldb/source/Plugins/ABI/PowerPC/CMakeFiles/lldbPluginABIPowerPC.dir/ABISysV_ppc64.cpp.o -MF tools/lldb/source/Plugins/ABI/PowerPC/CMakeFiles/lldbPluginABIPowerPC.dir/ABISysV_ppc64.cpp.o.d -o tools/lldb/source/Plugins/ABI/PowerPC/CMakeFiles/lldbPluginABIPowerPC.dir/ABISysV_ppc64.cpp.o -c /build/source/lldb/source/Plugins/ABI/PowerPC/ABISysV_ppc64.cpp
/build/source/lldb/source/Plugins/ABI/PowerPC/ABISysV_ppc64.cpp:771:14: error: no viable conversion from 'llvm::Expected<uint32_t>' (aka 'Expected<unsigned int>') to 'uint32_t' (aka 'unsigned int')
  771 | uint32_t n = m_type.GetNumChildren(omit_empty_base_classes, nullptr);
 |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8Vltv47oR_jX0CzGGLdmx_eAHx4q3AZpkkcsx-mRQ5EieDUWqvDhxH_rbC0rOOjmb03NaLNYIpHA4882F31AjvKfaIC7Z9JJNi4GIYW_d0h_1AX1wOCitOi7vDH8qowmR-3wxemX5io0KNjo99yG0PsmyDcs2Wh8a-IbmmYwfKixJmKHBwLLNN1u-7QdrtdwLMlCSNSShJCMcoWfZRji5p4AyRIcsL3qP2VqRD47KGMgalhe9HcvWWpSoz3qb8XQ-T5H0AV6MTn_v4mXZxrYpIC-lkHvs4z4tOMs2ZSStkshGJ_FNAClylm2GSUCGZRuphalZdsmySw7F31a_Xe3u755uCw7F7svt0-7h7ul-fZVWu4fHYr1b390-PK5uH3c3q_X93cN5Y3N3f7P6Ufz365vrs_Q6Fc13FVTl--i-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