[libvirt PATCH] meson: stop CLang doing inter-procedural analysis

Ján Tomko jtomko at redhat.com
Fri Mar 17 15:35:25 UTC 2023


On a Thursday in 2023, Daniel P. Berrangé wrote:
>The virNumaNodeIsAvailable function is stubbed out when building
>without libnuma, such that it just returns a constant value. When
>CLang is optimizing, it does inter-procedural analysis across
>function calls. When it sees that the call to virNumaNodeIsAvailable
>returns a fixed constant, it elides the conditional check for errors
>in the callers such as virNumaNodesetIsAvailable.
>

[...]

>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> meson.build | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230317/c95d9c33/attachment.sig>


More information about the libvir-list mailing list