diff options
-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()); } |