Skip to content

Commit 868e1fc

Browse files
authored
IR: Remove redundant UseList check in addUse (#138676)
Not sure if this did anything for compile time or not.
1 parent 1ead4a8 commit 868e1fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/Value.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class Value {
509509

510510
/// This method should only be used by the Use class.
511511
void addUse(Use &U) {
512-
if (UseList || hasUseList())
512+
if (hasUseList())
513513
U.addToList(&UseList);
514514
}
515515

0 commit comments

Comments
 (0)