[llvm] [SimplifyLibCalls] Prevent orphaned global string literals (PR #189502)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 31 00:24:56 PDT 2026


================
@@ -0,0 +1,23 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 6
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+ at str = constant [5 x i8] c"foo\0A\00"
----------------
arsenm wrote:

This string only covers the first case, not the second? 

https://github.com/llvm/llvm-project/pull/189502


More information about the llvm-commits mailing list