[llvm] [IPSCCP][FuncSpec] Protect against metadata access from call args. (PR #124284)
Alexandros Lamprineas via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 24 07:43:48 PST 2025
================
@@ -415,6 +415,8 @@ Constant *InstCostVisitor::visitCallBase(CallBase &I) {
for (unsigned Idx = 0, E = I.getNumOperands() - 1; Idx != E; ++Idx) {
Value *V = I.getOperand(Idx);
+ if (isa<MetadataAsValue>(V))
+ continue;
----------------
labrinea wrote:
Maybe abort completely with return nullptr if we decide to keep the check here?
https://github.com/llvm/llvm-project/pull/124284
More information about the llvm-commits
mailing list