================
@@ -2043,9 +2043,13 @@ static bool callInstIsMemcpy(CallInst *CI) {
}
static bool destArrayCanBeWidened(CallInst *CI) {
+ auto *GV = dyn_cast<GlobalVariable>(CI->getArgOperand(0));
----------------
davemgreen wrote:
getArgOperand(1)
https://github.com/llvm/llvm-project/pull/107120