diff --git a/utils/TableGen/RISCVCompressInstEmitter.cpp b/utils/TableGen/RISCVCompressInstEmitter.cpp index e64a2327f04..f298e639bf7 100644 --- a/utils/TableGen/RISCVCompressInstEmitter.cpp +++ b/utils/TableGen/RISCVCompressInstEmitter.cpp @@ -85,7 +85,7 @@ class RISCVCompressInstEmitter { MapKind Kind; union { unsigned Operand; // Operand number mapped to. - uint64_t Imm; // Integer immediate value. + int64_t Imm; // Integer immediate value. Record *Reg; // Physical register. } Data; int TiedOpIdx = -1; // Tied operand index within the instruction.