summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/sanitize-atomic-int-overflow.c
Commit message (Collapse)AuthorAgeFilesLines
* [CodeGen] Fix some broken IR generated by -fsanitize=unsigned-integer-overflowErik Pilkington2019-02-281-0/+33
I think the author of the function assumed that `GetInsertBlock()` wouldn't change from where `atomicPHI` was created, but this isn't true when `-fsanitize=unsigned-integer-overflow` is enabled (we generate an overflow/continuation label). Fix by keeping track of the block we want to return to to complete the cmpxchg loop. rdar://48406558 Differential revision: https://reviews.llvm.org/D58744 llvm-svn: 355054
OpenPOWER on IntegriCloud