isSafeToSpeculativelyExecute gained an argument to check for UB-implying
attributes in 830cf36bd4, but the default is to ignore them. Update
this code to account for that.
Fixes #210137
(cherry picked from commit fcff12829ecee44d715d9f901c0195fb1f30a881)