diff options
author | Jie Fu <jiefu@tencent.com> | 2024-02-23 06:54:39 +0800 |
---|---|---|
committer | Jie Fu <jiefu@tencent.com> | 2024-02-23 06:57:11 +0800 |
commit | 4ebee956455caa0da7783280f8515040eac89d08 (patch) | |
tree | c41ca3de704d16a5e9e3217cab93f83c2f1548f8 | |
parent | e3cab8fe82eb71fadb251d11fec7df9fa0dbdd27 (diff) | |
download | llvm-4ebee956455caa0da7783280f8515040eac89d08.zip llvm-4ebee956455caa0da7783280f8515040eac89d08.tar.gz llvm-4ebee956455caa0da7783280f8515040eac89d08.tar.bz2 |
[mlir][test] Fix -Wunused-variable in PassBuilderCallbacksTest.cpp (NFC)
llvm-project/llvm/unittests/MIR/PassBuilderCallbacksTest.cpp:333:10:
error: unused variable 'Ret' [-Werror,-Wunused-variable]
bool Ret = MIR->parseMachineFunctions(*Mod, MMI);
^
1 error generated.
-rw-r--r-- | llvm/unittests/MIR/PassBuilderCallbacksTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/MIR/PassBuilderCallbacksTest.cpp b/llvm/unittests/MIR/PassBuilderCallbacksTest.cpp index 4b7d784..8e3738d 100644 --- a/llvm/unittests/MIR/PassBuilderCallbacksTest.cpp +++ b/llvm/unittests/MIR/PassBuilderCallbacksTest.cpp @@ -330,7 +330,7 @@ protected: Mod->setModuleIdentifier("module"); Mod->setDataLayout(TM.createDataLayout()); - bool Ret = MIR->parseMachineFunctions(*Mod, MMI); + [[maybe_unused]] bool Ret = MIR->parseMachineFunctions(*Mod, MMI); assert(!Ret); return Mod; |