Skip to content

Commit 45267ec

Browse files
committed
[X86] Use getSigned() for segment offset
The offset here is a signed quantity.
1 parent a6fa720 commit 45267ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLoweringCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static bool hasStackGuardSlotTLS(const Triple &TargetTriple) {
553553
static Constant* SegmentOffset(IRBuilderBase &IRB,
554554
int Offset, unsigned AddressSpace) {
555555
return ConstantExpr::getIntToPtr(
556-
ConstantInt::get(Type::getInt32Ty(IRB.getContext()), Offset),
556+
ConstantInt::getSigned(Type::getInt32Ty(IRB.getContext()), Offset),
557557
IRB.getPtrTy(AddressSpace));
558558
}
559559

0 commit comments

Comments
 (0)