Skip to content

Fix if-statement elision on constant true/false condition, for condit…#4559

Merged
JohanEngelen merged 2 commits intoldc-developers:masterfrom
JohanEngelen:gh4556
Jan 10, 2024
Merged

Fix if-statement elision on constant true/false condition, for condit…#4559
JohanEngelen merged 2 commits intoldc-developers:masterfrom
JohanEngelen:gh4556

Conversation

@JohanEngelen
Copy link
Member

…ion expressions that are more complex than a simple integer.

Resolves issue #4556

…ion expressions that are more complex than a simple integer.

Resolves issue ldc-developers#4556
@kinke
Copy link
Member

kinke commented Jan 9, 2024

Is the Circle CI failure caused by using the distro-LLVM v11.0.0, whereas the vanilla-LLVM job uses v11.1.0?

Edit: In which case we could presumably simply use llvm-12-dev instead, available for Ubuntu 20.

@JohanEngelen
Copy link
Member Author

Is the Circle CI failure caused by using the distro-LLVM v11.0.0, whereas the vanilla-LLVM job uses v11.1.0?

Yep. The testcase is a bit strange too, let me think about it.

… the right thing regardless of codegen optimization or not.
@JohanEngelen JohanEngelen enabled auto-merge (squash) January 10, 2024 22:13
@JohanEngelen JohanEngelen merged commit 1d4c2cf into ldc-developers:master Jan 10, 2024
@JohanEngelen JohanEngelen deleted the gh4556 branch January 10, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants