Author: Atmn Patel Date: 2020-11-06T23:53:38-05:00 New Revision: b1878b4641e06baa754ce6e3e0387b1e7d7dc143
URL: https://github.com/llvm/llvm-project/commit/b1878b4641e06baa754ce6e3e0387b1e7d7dc143 DIFF: https://github.com/llvm/llvm-project/commit/b1878b4641e06baa754ce6e3e0387b1e7d7dc143.diff LOG: [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. Added: Modified: clang/test/CodeGen/sanitizer-module-constructor.c Removed: ################################################################################ diff --git a/clang/test/CodeGen/sanitizer-module-constructor.c b/clang/test/CodeGen/sanitizer-module-constructor.c index 3e29a923a9f1..ee4c4f7e1019 100644 --- a/clang/test/CodeGen/sanitizer-module-constructor.c +++ b/clang/test/CodeGen/sanitizer-module-constructor.c @@ -11,7 +11,7 @@ struct a { int d; b e; static void f(b g) { - for (d = g->c;;) + for (d = g->c; 1 ;) ; } void h() { f(e); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits