Open Quuxplusone opened 5 years ago
Bugzilla Link | PR39732 |
Status | NEW |
Importance | P normal |
Reported by | Max Langhof (max.langhof@gmx.de) |
Reported on | 2018-11-20 12:44:24 -0800 |
Last modified on | 2019-11-29 10:36:01 -0800 |
Version | trunk |
Hardware | PC All |
CC | florian_hahn@apple.com, htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also | PR40092 |
Last godbolt link is not correctly parsed for automatic link generation, this one works: https://godbolt.org/z/9yA5Nq
With assertions, this actually crashed in clang:
Assertion failed: (dominatingIP && "no existing variable and no dominating
IP!"), function SetupCleanupBlockActivation, file llvm-
project/clang/lib/CodeGen/CGCleanup.cpp, line 1214.
Updating title and move to clang
Good news: This bug, as well as the linked bug 40092, can no longer be
reproduced on any optimization level with the given code samples under clang
9.0 or clang trunk.
godbolt links for convenience:
https://godbolt.org/z/k5Q7q4 (minimal, pass)
https://godbolt.org/z/kPB_Hb (all tests, pass)
https://godbolt.org/z/BuX7R4 (bug 40092, pass)
I have not identified which exact change caused this (apparent) fix.