Skip to content

Commit 6352d8e

Browse files
arsenmcdevadas
andcommitted
Update VirtRegMap.cpp
Co-authored-by: Christudasan Devadasan <[email protected]>
1 parent 571561e commit 6352d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/VirtRegMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ void VirtRegRewriter::rewrite() {
619619
assert(Register(PhysReg).isPhysical());
620620

621621
RewriteRegs.insert(PhysReg);
622-
assert((!MRI->isReserved(PhysReg) || !IsValidAlloc) &&
622+
assert((!MRI->isReserved(PhysReg) || IsFailedAlloc) &&
623623
"Reserved register assignment");
624624

625625
// Preserve semantics of sub-register operands.

0 commit comments

Comments
 (0)