Skip to content

Commit 4fb5018

Browse files
committed
Fix checking uselists of constants in assume bundle queries
1 parent d08fab0 commit 4fb5018

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Analysis/AssumeBundleQueries.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ llvm::getKnowledgeForValue(const Value *V,
180180
}
181181
return RetainedKnowledge::none();
182182
}
183+
184+
if (!V->hasUseList())
185+
return RetainedKnowledge::none();
186+
183187
for (const auto &U : V->uses()) {
184188
CallInst::BundleOpInfo* Bundle = getBundleFromUse(&U);
185189
if (!Bundle)

0 commit comments

Comments
 (0)