[all-commits] [llvm/llvm-project] c0f504: [mlir] Fix two build warnings in VectorToGPU (NFC)
Jie Fu via All-commits
all-commits at lists.llvm.org
Tue Feb 14 17:36:09 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c0f504df485707e9852047671222076a7de035da
https://github.com/llvm/llvm-project/commit/c0f504df485707e9852047671222076a7de035da
Author: Jie Fu <jiefu at tencent.com>
Date: 2023-02-15 (Wed, 15 Feb 2023)
Changed paths:
M mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h
M mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
Log Message:
-----------
[mlir] Fix two build warnings in VectorToGPU (NFC)
In file included from /data/llvm-project/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp:13:
/data/llvm-project/mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h:15:1: error: class 'LogicalResult' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Werror,-Wmismatched-tags]
class LogicalResult;
^
/data/llvm-project/mlir/include/mlir/Support/LogicalResult.h:26:22: note: previous use is here
struct [[nodiscard]] LogicalResult {
^
/data/llvm-project/mlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h:15:1: note: did you mean struct here?
class LogicalResult;
^~~~~
struct
/data/llvm-project/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp:724:5: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
rewriter.notifyMatchFailure(
^~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
More information about the All-commits
mailing list