@@ -722,7 +722,7 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
722722 auto *LowerBound =
723723 llvm::ConstantAsMetadata::get (llvm::ConstantInt::getSigned (
724724 llvm::Type::getInt64Ty (CGM.getLLVMContext ()), 0 ));
725- SmallVector<int64_t , 9 > Expr (
725+ SmallVector<uint64_t , 9 > Expr (
726726 {llvm::dwarf::DW_OP_constu, NumElemsPerVG, llvm::dwarf::DW_OP_bregx,
727727 /* AArch64::VG */ 46 , 0 , llvm::dwarf::DW_OP_mul,
728728 llvm::dwarf::DW_OP_constu, 1 , llvm::dwarf::DW_OP_minus});
@@ -768,7 +768,7 @@ llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
768768 }
769769
770770 // Element count = (VLENB / SEW) x LMUL
771- SmallVector<int64_t , 12 > Expr (
771+ SmallVector<uint64_t , 12 > Expr (
772772 // The DW_OP_bregx operation has two operands: a register which is
773773 // specified by an unsigned LEB128 number, followed by a signed LEB128
774774 // offset.
@@ -4325,7 +4325,7 @@ void CGDebugInfo::CreateLexicalBlock(SourceLocation Loc) {
43254325}
43264326
43274327void CGDebugInfo::AppendAddressSpaceXDeref (
4328- unsigned AddressSpace, SmallVectorImpl<int64_t > &Expr) const {
4328+ unsigned AddressSpace, SmallVectorImpl<uint64_t > &Expr) const {
43294329 Optional<unsigned > DWARFAddressSpace =
43304330 CGM.getTarget ().getDWARFAddressSpace (AddressSpace);
43314331 if (!DWARFAddressSpace)
@@ -4494,7 +4494,7 @@ llvm::DILocalVariable *CGDebugInfo::EmitDeclare(const VarDecl *VD,
44944494 Line = getLineNumber (VD->getLocation ());
44954495 Column = getColumnNumber (VD->getLocation ());
44964496 }
4497- SmallVector<int64_t , 13 > Expr;
4497+ SmallVector<uint64_t , 13 > Expr;
44984498 llvm::DINode::DIFlags Flags = llvm::DINode::FlagZero;
44994499 if (VD->isImplicit ())
45004500 Flags |= llvm::DINode::FlagArtificial;
@@ -4720,7 +4720,7 @@ void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable(
47204720 target.getStructLayout (blockInfo.StructureType )
47214721 ->getElementOffset (blockInfo.getCapture (VD).getIndex ()));
47224722
4723- SmallVector<int64_t , 9 > addr;
4723+ SmallVector<uint64_t , 9 > addr;
47244724 addr.push_back (llvm::dwarf::DW_OP_deref);
47254725 addr.push_back (llvm::dwarf::DW_OP_plus_uconst);
47264726 addr.push_back (offset.getQuantity ());
@@ -5191,7 +5191,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
51915191 } else {
51925192 auto Align = getDeclAlignIfRequired (D, CGM.getContext ());
51935193
5194- SmallVector<int64_t , 4 > Expr;
5194+ SmallVector<uint64_t , 4 > Expr;
51955195 unsigned AddressSpace =
51965196 CGM.getContext ().getTargetAddressSpace (D->getType ());
51975197 if (CGM.getLangOpts ().CUDA && CGM.getLangOpts ().CUDAIsDevice ) {
0 commit comments