A local assigned on only one path

pick is compiled as C++20 at -O2 with Clang or GCC, and some callers pass ready == false. What does the generated code for pick look like?

main.cpp
int pick(bool ready) {
    int value;
    if (ready) value = 42;
    return value;
}

37 of 44 in Compilers