[mlir][flang] Fix -Wunused-result after D146785 (NFC)
authorJie Fu <jiefu@tencent.com>
Sun, 2 Apr 2023 08:30:33 +0000 (16:30 +0800)
committerJie Fu <jiefu@tencent.com>
Sun, 2 Apr 2023 08:30:33 +0000 (16:30 +0800)
commitd270d3638b048dff8845c604a447180852c7edcf
treecf370df6c3ab36f821f66bc9aba630d881b305dd
parente70ec2e50f41f8dd966cbd90090b8a2dfee316e1
[mlir][flang] Fix -Wunused-result after D146785 (NFC)

/data/llvm-project/mlir/examples/toy/Ch4/toyc.cpp:119:5: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
    applyPassManagerCLOptions(pm);
    ^~~~~~~~~~~~~~~~~~~~~~~~~ ~~
1 error generated.

/data/llvm-project/flang/lib/Frontend/FrontendActions.cpp:669:3: error: ignoring return value of function declared with 'nodiscard' attribute [-Werror,-Wunused-result]
  mlir::applyPassManagerCLOptions(pm);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
1 error generated.
flang/lib/Frontend/FrontendActions.cpp
flang/tools/bbc/bbc.cpp
flang/tools/tco/tco.cpp
mlir/examples/toy/Ch3/toyc.cpp
mlir/examples/toy/Ch4/toyc.cpp
mlir/examples/toy/Ch5/toyc.cpp
mlir/examples/toy/Ch6/toyc.cpp
mlir/examples/toy/Ch7/toyc.cpp