This is an archive of the discontinued LLVM Phabricator instance.

[clang] fix -Wuninitialized for asm goto outputs on indirect edges.
ClosedPublic

Authored by nickdesaulniers on Dec 21 2022, 3:12 PM.

Details

Summary

Now that we support outputs from asm goto along indirect edges, we can
remove/revert some code that was added to help warn about the previous
limitation that outputs were not supported along indirect edges.

Reverts some code added in:
commit 72aa619a7fe0 ("Warn of uninitialized variables on asm goto's indirect branch")
commit 3a604fdbcd5f ("[Clang][CFG] check children statements of asm goto")
But keeps+updates the tests.

Link: https://github.com/llvm/llvm-project/issues/53562

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
nickdesaulniers requested review of this revision.Dec 21 2022, 3:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 21 2022, 3:12 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
nickdesaulniers edited the summary of this revision. (Show Details)
void accepted this revision.Dec 21 2022, 5:09 PM
This revision is now accepted and ready to land.Dec 21 2022, 5:09 PM
  • rebase, format
  • final rebase