diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2025-09-12 14:41:02 -0700 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2025-09-12 14:41:02 -0700 |
commit | d81fcf5f9ed8a28717e6b1c4897a458bf2b2994c (patch) | |
tree | f74fd57958edc41cecf9d6d0425f757dcff9e50a /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 9a7704309a8ece73f772fa8daf627d3f461972df (diff) | |
download | llvm-users/pcc/spr/codegen-introduce-machinefunctiongetpreferredalignment.zip llvm-users/pcc/spr/codegen-introduce-machinefunctiongetpreferredalignment.tar.gz llvm-users/pcc/spr/codegen-introduce-machinefunctiongetpreferredalignment.tar.bz2 |
Created using spr 1.3.6-beta.1
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 478a7cc..a026fb9 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -334,7 +334,7 @@ Align MachineFunction::getPreferredAlignment() const { PrefAlignment = STI.getTargetLowering()->getPrefFunctionAlignment(); else PrefAlignment = Align(1); - + return std::max(PrefAlignment, getAlignment()); } |