[llvm] [NFCI] replace getValueType with new getGlobalSize query (PR #177186)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 21 08:11:34 PST 2026


================
@@ -1570,7 +1569,8 @@ processInternalGlobal(GlobalVariable *GV, const GlobalStatus &GS,
       return true;
   }
   Value *StoredOnceValue = GS.getStoredOnceValue();
-  if (GS.StoredType == GlobalStatus::StoredOnce && StoredOnceValue) {
+  if (GS.StoredType == GlobalStatus::StoredOnce && StoredOnceValue &&
+      StoredOnceValue->getType()->isSized()) {
----------------
nikic wrote:

Why this new check? Stored values should always be sized.

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


More information about the llvm-commits mailing list