[clang] [KeyInstr][Clang] Switch stmt atom (PR #134643)
Jeremy Morse via cfe-commits
cfe-commits at lists.llvm.org
Fri May 23 09:06:25 PDT 2025
================
@@ -0,0 +1,51 @@
+// RUN: %clang_cc1 -gkey-instructions -x c++ -std=c++17 %s -debug-info-kind=line-tables-only -emit-llvm -o - \
+// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank --check-prefixes=CHECK,CHECK-CXX
+
+// RUN: %clang_cc1 -gkey-instructions -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - \
+// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
+
+int g;
+void a(int A, int B) {
+// CHECK: entry:
+// The load gets associated with the branch rather than the store.
+// FIXME: Is that the best thing to do?
----------------
jmorse wrote:
SGTM as a TODO
https://github.com/llvm/llvm-project/pull/134643
More information about the cfe-commits
mailing list