diff options
| author | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2021-01-19 15:32:35 +0100 |
|---|---|---|
| committer | Bjorn Pettersson <bjorn.a.pettersson@ericsson.com> | 2021-01-22 21:12:17 +0100 |
| commit | 72f863fd37c3471e7e1b152ac613da00ab6faaba (patch) | |
| tree | b144164ccf20294c1297e0fd1079cae459fe8b48 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 29d420e0bf0273cdef35b2d2453f0f574d1e8313 (diff) | |
[CodeGen] Use getCharWidth() more consistently in CGRecordLowering. NFC
When using getByteArrayType the requested size is calculated in
char units, but the type used for the array was hardcoded to the
Int8Ty. This patch is using getCharWIdth a bit more consistently
by using getIntNTy in combination with getCharWidth, instead
of explictly using getInt8Ty.
Reviewed By: rjmccall
Differential Revision: https://reviews.llvm.org/D94977
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
