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 | |
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
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index a454ad0..1f8feda41 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -819,7 +819,7 @@ public: } Align getPreferredAlignment() const; - + /// exposesReturnsTwice - Returns true if the function calls setjmp or /// any other similar functions with attribute "returns twice" without /// having the attribute itself. 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()); } |