summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-08-31 13:52:17 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-08-31 13:52:17 +0000
commit64488118bf0da9c8df53ea926d5b3f57e30c9b2c (patch)
tree86c550358912cc7f2d313c02a58805b08a3cd4f9 /llvm/lib/CodeGen/MachineFunction.cpp
parent0509876f3fab3d00c13098c6bfb46b7eac0ad4f2 (diff)
downloadbcm5719-llvm-64488118bf0da9c8df53ea926d5b3f57e30c9b2c.tar.gz
bcm5719-llvm-64488118bf0da9c8df53ea926d5b3f57e30c9b2c.zip
Fixed spill stack objects are mutable
Differential Revision: https://reviews.llvm.org/D24039 llvm-svn: 280244
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 7f1bb9294ad..90ca5206c74 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -642,11 +642,11 @@ int MachineFrameInfo::CreateFixedObject(uint64_t Size, int64_t SPOffset,
/// Create a spill slot at a fixed location on the stack.
/// Returns an index with a negative value.
int MachineFrameInfo::CreateFixedSpillStackObject(uint64_t Size,
- int64_t SPOffset) {
+ int64_t SPOffset,
+ bool Immutable) {
unsigned Align = MinAlign(SPOffset, ForcedRealign ? 1 : StackAlignment);
Align = clampStackAlignment(!StackRealignable, Align, StackAlignment);
- Objects.insert(Objects.begin(), StackObject(Size, Align, SPOffset,
- /*Immutable*/ true,
+ Objects.insert(Objects.begin(), StackObject(Size, Align, SPOffset, Immutable,
/*isSS*/ true,
/*Alloca*/ nullptr,
/*isAliased*/ false));
OpenPOWER on IntegriCloud