mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
6acd265c5a
Before this commit, we used to decomple UndefValue to the literal 0. This was causing problems in some cases, such as switch(0 /*undef*/) where clang was issuing a warning that was impossible do disable without turning off -Wall alltogether, which is undesirable. This commit introduces a set of helper functions in revng-primitive-types.h, that are now used to avoid emitting undef as constant. This is more semantically meaningful when looking at the decompiled code, and it has the nice side effect that it silences the clang warnings mentioned above.