Skip to content

Commit cdba6bd

Browse files
committed
Revert "[CodeGen] Fix a warning"
This reverts commit 8b167db.
1 parent 9db7502 commit cdba6bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/MacroFusion.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ bool llvm::fuseInstructionPair(ScheduleDAGInstrs &DAG, SUnit &FirstSU,
6262
if (SI.isCluster())
6363
return false;
6464

65-
assert(FirstSU.ParentClusterIdx == InvalidClusterId &&
66-
SecondSU.ParentClusterIdx == InvalidClusterId);
65+
unsigned FirstCluster = FirstSU.ParentClusterIdx;
66+
unsigned SecondCluster = SecondSU.ParentClusterIdx;
67+
assert(FirstCluster == InvalidClusterId && SecondCluster == InvalidClusterId);
6768

6869
// Though the reachability checks above could be made more generic,
6970
// perhaps as part of ScheduleDAGInstrs::addEdge(), since such edges are valid,

0 commit comments

Comments
 (0)