diff options
author | Jie Fu <jiefu@tencent.com> | 2024-04-26 23:26:44 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2024-04-26 23:26:44 +0800 |
commit | 64d514a2e1f1396d54bca0597b1e8b4e580bfd7b (patch) | |
tree | a0c8919a7532ee58ba1b2ec2046bf33e9b2c4e96 /llvm/lib/MC/ELFObjectWriter.cpp | |
parent | 2d09ac4037415ab0044ad508aae2ff8b2559a9d8 (diff) | |
download | llvm-64d514a2e1f1396d54bca0597b1e8b4e580bfd7b.zip llvm-64d514a2e1f1396d54bca0597b1e8b4e580bfd7b.tar.gz llvm-64d514a2e1f1396d54bca0597b1e8b4e580bfd7b.tar.bz2 |
[mlir] Fix -Wdeprecated-declarations of cast in VCIXToLLVMIRTranslation.cpp (NFC)
In file included from /llvm-project/mlir/lib/Target/LLVMIR/Dialect/VCIX/VCIXToLLVMIRTranslation.cpp:70:
/llvm-project/build-Release/tools/mlir/include/mlir/Dialect/LLVMIR/VCIXConversions.inc:8:48: error: 'cast' is deprecated: Use mlir::cast<U>() instead [-Werror,-Wdeprecated-declarations]
VectorType vt = op.getResult().getType().cast<VectorType>();
^
/llvm-project/mlir/include/mlir/IR/Types.h:345:9: note: 'cast' has been explicitly marked deprecated here
U Type::cast() const {
^
In file included from /llvm-project/mlir/lib/Target/LLVMIR/Dialect/VCIX/VCIXToLLVMIRTranslation.cpp:70:
/llvm-project/build-Release/tools/mlir/include/mlir/Dialect/LLVMIR/VCIXConversions.inc:8:48: error: 'cast<mlir::VectorType>' is deprecated: Use mlir::cast<U>() instead [-Werror,-Wdeprecated-declarations]
VectorType vt = op.getResult().getType().cast<VectorType>();
^
/llvm-project/mlir/include/mlir/IR/Types.h:112:5: note: 'cast<mlir::VectorType>' has been explicitly marked deprecated here
[[deprecated("Use mlir::cast<U>() instead")]]
^
In file included from /llvm-project/mlir/lib/Target/LLVMIR/Dialect/VCIX/VCIXToLLVMIRTranslation.cpp:70:
/llvm-project/build-Release/tools/mlir/include/mlir/Dialect/LLVMIR/VCIXConversions.inc:32:48: error: 'cast' is deprecated: Use mlir::cast<U>() instead [-Werror,-Wdeprecated-declarations]
VectorType vt = op.getResult().getType().cast<VectorType>();
^
/llvm-project/mlir/include/mlir/IR/Types.h:345:9: note: 'cast' has been explicitly marked deprecated here
U Type::cast() const {
^
In file included from /llvm-project/mlir/lib/Target/LLVMIR/Dialect/VCIX/VCIXToLLVMIRTranslation.cpp:70:
/llvm-project/build-Release/tools/mlir/include/mlir/Dialect/LLVMIR/VCIXConversions.inc:32:48: error: 'cast<mlir::VectorType>' is deprecated: Use mlir::cast<U>() instead [-Werror,-Wdeprecated-declarations]
VectorType vt = op.getResult().getType().cast<VectorType>();
^
/llvm-project/mlir/include/mlir/IR/Types.h:112:5: note: 'cast<mlir::VectorType>' has been explicitly marked deprecated here
[[deprecated("Use mlir::cast<U>() instead")]]
^
4 errors generated.
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions