diff options
author | Chris Lattner <clattner@nondot.org> | 2021-10-16 13:01:13 -0700 |
---|---|---|
committer | Chris Lattner <clattner@nondot.org> | 2021-10-16 13:30:28 -0700 |
commit | ecbee4804d44c0afdf97fe59e8221c30cbbf3ae7 (patch) | |
tree | 043667fa8abd8501aeb63599b0abfd77947ce70c /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d0d991cd23eff29737aae704d8b9611bd3416ec9 (diff) | |
download | llvm-ecbee4804d44c0afdf97fe59e8221c30cbbf3ae7.zip llvm-ecbee4804d44c0afdf97fe59e8221c30cbbf3ae7.tar.gz llvm-ecbee4804d44c0afdf97fe59e8221c30cbbf3ae7.tar.bz2 |
[Builders.h] Silence a warning by adding a cast.
The no-result version of createOrFold calls 'tryFold' but
ignores the result since it doesn't matter what it produced.
Explicitly cast to void to silence this warning:
../llvm/mlir/include/mlir/IR/Builders.h:454:5: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
tryFold(op.getOperation(), unused);
^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
Differential Revision: https://reviews.llvm.org/D111951
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions