aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRanjeet Singh <Ranjeet.Singh@arm.com>2018-12-07 08:34:59 +0000
committerRanjeet Singh <Ranjeet.Singh@arm.com>2018-12-07 08:34:59 +0000
commit7a7132603b27634105a1d2842ac901fbaf153999 (patch)
tree1cf192de76922e79f5fec9acb7faafe909514290 /clang/lib/CodeGen/CodeGenModule.cpp
parent4dc4ebd606d6bfa9ae4a8d9c7182f01873da96ee (diff)
downloadllvm-7a7132603b27634105a1d2842ac901fbaf153999.zip
llvm-7a7132603b27634105a1d2842ac901fbaf153999.tar.gz
llvm-7a7132603b27634105a1d2842ac901fbaf153999.tar.bz2
[IR] Don't assume all functions are 4 byte aligned
In some cases different alignments for function might be used to save space e.g. thumb mode with -Oz will try to use 2 byte function alignment. Similar patch that fixed this in other areas exists here https://reviews.llvm.org/D46110 This was approved previously https://reviews.llvm.org/D55115 (r348215) but when committed it caused failures on the sanitizer buildbots when building llvm with clang (containing this patch). This is now fixed because I've added a check to see if getting the parent module returns null if it does then set the alignment to 0. Differential Revision: https://reviews.llvm.org/D55115 llvm-svn: 348571
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions