OSDN Git Service

Add assertion to padding size calculation, NFC
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 2 May 2018 17:20:22 +0000 (17:20 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 2 May 2018 17:20:22 +0000 (17:20 +0000)
commitf6719aecc702a3daab1c35a76b9a94eef15f1612
treea28a63968f249c62e8ff256b3823a37d998c9755
parent301a226e182af9357f2df9a4e546ec7348ef297e
Add assertion to padding size calculation, NFC

The size of an object cannot be less than the emitted size of all the
contained elements. This would cause an overflow in padding size
calculation. Add an assert to catch this.

Patch by Suyog Sarda.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331376 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp