1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/include
Justin Lebar 4890e37ab4 Add assertions checking SignExtend{32,64}'s bit width.
Summary:
The bit width must be greater than zero, otherwise we shift by the
integer's width, which is UB.  Also (more obviously) the width must be
less than or equal to the integer's width, otherwise we shift by a
negative number, which is also UB.

Reviewers: rnk

Subscribers: llvm-commits, dylanmckay

Differential Revision: https://reviews.llvm.org/D22442

llvm-svn: 275720
2016-07-17 18:19:23 +00:00
..
llvm Add assertions checking SignExtend{32,64}'s bit width. 2016-07-17 18:19:23 +00:00
llvm-c Do not use bool in C header lto.h, use lto_bool_t instead 2016-07-11 23:55:01 +00:00