HomePhabricator

[CodeGen] Fixes sanitizer test

Authored by atmnpatel on Nov 6 2020, 8:50 PM.

Description

[CodeGen] Fixes sanitizer test

By turning the loop into an infinite one, the loop can't be deleted
anymore so the test will continue to pass.

Details

Event Timeline

MaskRay added a subscriber: MaskRay.Nov 6 2020, 9:04 PM
MaskRay added inline comments.
/clang/test/CodeGen/sanitizer-module-constructor.c
14

It was already an infinite loop

atmnpatel added inline comments.Nov 6 2020, 9:35 PM
/clang/test/CodeGen/sanitizer-module-constructor.c
14

Yep, I mixed up the semantics while implementing some LoopDeletion changes, so this turns out to be a fix of the failing test but it's lipstick on a pig so I reverted this and the original patch that caused the test to fail, so it can go through review again. Sorry.