Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Backport "[ARM] Fix PR32130: Handle promotion of zero sized constants." #71

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

TimNN
Copy link

@TimNN TimNN commented Apr 23, 2017

Otherwise zero sized constants could produce LLVM Assertions for ARM targets.

(Note: While doing the final rebase / cleanup of the LLVM 4.0 upgrade I decided that it would probably be nice to have a PR # associated with each rust modification for future reference / discussion, thus this PR.)

The special case of zero sized values was previously not handled correctly.
This patch handles this by not promoting if the size is zero.

Patch by Tim Neumann.

Differential Revision: https://reviews.llvm.org/D31116

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298320 91177308-0d34-0410-b5e6-96231b3b80d8
@TimNN TimNN merged commit 64449e1 into rust-lang:rust-llvm-2017-04-13 Apr 23, 2017
@TimNN TimNN deleted the arm-backport-4.0 branch April 23, 2017 18:33
arielb1 pushed a commit that referenced this pull request Jun 27, 2017
Backport "[ARM] Fix PR32130: Handle promotion of zero sized constants."
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants