Skip to content

Commit 751d1a2

Browse files
committed
Use hasUseList instead of isa<ConstantData>
1 parent 560bf42 commit 751d1a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/verify-uselistorder/verify-uselistorder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static void verifyUseListOrder(const Module &M) {
398398

399399
static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen,
400400
DenseSet<Value *> &Seen) {
401-
if (isa<ConstantData>(V))
401+
if (!V->hasUseList())
402402
return;
403403

404404
if (!Seen.insert(V).second)
@@ -443,7 +443,7 @@ static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen,
443443
}
444444

445445
static void reverseValueUseLists(Value *V, DenseSet<Value *> &Seen) {
446-
if (isa<ConstantData>(V))
446+
if (!V->hasUseList())
447447
return;
448448

449449
if (!Seen.insert(V).second)

0 commit comments

Comments
 (0)