diff options
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r-- | lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp index 71216a5d63..41875522ed 100644 --- a/lib/CodeGen/CGExprConstant.cpp +++ b/lib/CodeGen/CGExprConstant.cpp @@ -238,7 +238,7 @@ public: if (curField->isBitField()) { // Create a dummy struct for bit-field insertion - unsigned NumElts = CGM.getTargetData().getABITypeSize(Ty) / 8; + unsigned NumElts = CGM.getTargetData().getTypePaddedSize(Ty) / 8; llvm::Constant* NV = llvm::Constant::getNullValue(llvm::Type::Int8Ty); std::vector<llvm::Constant*> Elts(NumElts, NV); |