diff options
Diffstat (limited to 'mlir/lib/AsmParser/Parser.cpp')
| -rw-r--r-- | mlir/lib/AsmParser/Parser.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/AsmParser/Parser.cpp b/mlir/lib/AsmParser/Parser.cpp index 82bdb84..74936e3 100644 --- a/mlir/lib/AsmParser/Parser.cpp +++ b/mlir/lib/AsmParser/Parser.cpp @@ -407,8 +407,8 @@ Parser::parseFloatFromIntegerLiteral(std::optional<APFloat> &result,                       "hexadecimal float constant out of range for type");    } -  APInt truncatedValue(typeSizeInBits, intValue.getNumWords(), -                       intValue.getRawData()); +  APInt truncatedValue(typeSizeInBits, +                       ArrayRef(intValue.getRawData(), intValue.getNumWords()));    result.emplace(semantics, truncatedValue);    return success();  }  | 
