If it's not 100% valid on 100% platforms and 100% of all future Libc revisions (which is impossible if it relies on undefined behavior and can link with different Libc versions), then it's not 100% correct and valid.
And neither Clang nor LLVM are generating platform agnostic code. The code only has meaning for the specific platform being targeted.