[flang] Replace access through union with reinterpret_cast.
authorDavid Truby <david.truby@arm.com>
Mon, 30 Sep 2019 11:41:34 +0000 (12:41 +0100)
committerDavid Truby <david.truby@arm.com>
Mon, 30 Sep 2019 11:41:34 +0000 (12:41 +0100)
commitc579118ce6212cf29607e61a9d3a76440604d6da
tree72f3143f6575d521b9d7b646dd0c3c4585e0144a
parent5e86f8893717c2203f235215907d2abafc23d65e
[flang] Replace access through union with reinterpret_cast.

This avoids undefined behaviour.

Original-commit: flang-compiler/f18@e289bbfa83ebb818971a688b019be697fd900d62
Reviewed-on: https://github.com/flang-compiler/f18/pull/767
Tree-same-pre-rewrite: false
flang/lib/evaluate/intrinsics-library-templates.h
flang/lib/evaluate/intrinsics-library.h