Skip to content

Commit 5c5c8c4

Browse files
committed
Use correct saved_reg_area_pointer
1 parent d0613ac commit 5c5c8c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/Targets/Hexagon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ Address HexagonABIInfo::EmitVAArgForHexagonLinux(CodeGenFunction &CGF,
393393
llvm::Type *MemTy = CGF.ConvertTypeForMem(Ty);
394394
llvm::PHINode *ArgAddr = CGF.Builder.CreatePHI(
395395
llvm::PointerType::getUnqual(MemTy->getContext()), 2, "vaarg.addr");
396-
ArgAddr->addIncoming(__new_saved_reg_area_pointer, InRegBlock);
396+
ArgAddr->addIncoming(__current_saved_reg_area_pointer, InRegBlock);
397397
ArgAddr->addIncoming(__overflow_area_pointer, OnStackBlock);
398398

399399
return Address(ArgAddr, MemTy, CharUnits::fromQuantity(ArgAlign));

0 commit comments

Comments
 (0)