Revert "Fix T81077 id_management test on macOS"

This reverts commit 2ddecfffc3.

The correct fix is to compile with -fno-strict-aliasing on
release/relwithdebinfo builds also.

See the last commit/ {D9372}.

Maniphest Task T81077
This commit is contained in:
Ankit Meel 2020-10-28 20:54:10 +05:30
parent fc6a1f44d2
commit 30ec0753c7
Notes: blender-bot 2023-02-14 02:45:41 +01:00
Referenced by issue #81077, Build Bot: MacOS X test fails
1 changed files with 1 additions and 3 deletions

View File

@ -261,9 +261,7 @@ static void id_delete(Main *bmain, const bool do_tagged_deletion)
bool keep_looping = true;
while (keep_looping) {
ID *id, *id_next;
/* Marked volatile to avoid a macOS Clang optimization bug. See T81077.
* #last_remapped_id.next is assumed to be NULL by optimizer which is wrong. */
volatile ID *last_remapped_id = tagged_deleted_ids.last;
ID *last_remapped_id = tagged_deleted_ids.last;
keep_looping = false;
/* First tag and remove from Main all datablocks directly from target lib.