[PATCH] D155342: [clang][JumpDiagnostics] ignore non-asm goto target scopes

Shafik Yaghmour via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 20 15:26:39 PDT 2023


shafik added inline comments.


================
Comment at: clang/lib/Sema/JumpDiagnostics.cpp:669
+        if (JumpScope != TargetScope)
+          DiagnoseIndirectOrAsmJump(G, JumpScope, LD, TargetScope);
+      }
----------------
Do we have a test that checks this diagnostic?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155342/new/

https://reviews.llvm.org/D155342



More information about the cfe-commits mailing list