diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 3dac0f6e6dd..2285b6c822a 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -1154,7 +1154,7 @@ static unsigned enforceKnownAlignment(Value *V, unsigned Alignment, // then don't round up. This avoids dynamic stack realignment. if (DL.exceedsNaturalStackAlignment(Align(PrefAlign))) return Alignment; - AI->setAlignment(PrefAlign); + AI->setAlignment(MaybeAlign(PrefAlign)); return PrefAlign; } |