OSDN Git Service

Have DataLayout::isLegalInteger() accept uint64_t
authorMichael Kuperstein <michael.kuperstein@gmail.com>
Fri, 18 Mar 2016 23:19:29 +0000 (23:19 +0000)
committerMichael Kuperstein <michael.kuperstein@gmail.com>
Fri, 18 Mar 2016 23:19:29 +0000 (23:19 +0000)
commit03a784fdb187b153f33b45e60c9f4da997109ee9
treef6811a36bd1fbfe266403d140045dbd3f1ef19bc
parenta87dfbab4cbdcb77c94165221a3352724301e857
Have DataLayout::isLegalInteger() accept uint64_t

While not strictly necessary, since we don't support large integer
types, this avoids bugs due to silent truncation from uint64_t to a
32-bit unsigned (e.g. DL.isLegalInteger(DL.getTypeSizeInBits(Ty) )

This fixes PR26972.

Differential Revision: http://reviews.llvm.org/D18258

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263850 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DataLayout.h
test/Transforms/SROA/pr26972.ll [new file with mode: 0644]