[Mlir-commits] [mlir] [MLIR][LLVM] Fix blockaddress mapping to LLVM blocks (PR #139814)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed May 14 10:06:09 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h b/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
index 46097a947..97ae14aa0 100644
--- a/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
+++ b/mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
@@ -149,9 +149,8 @@ public:
void mapBlockAddress(BlockAddressAttr attr, llvm::BasicBlock *block) {
auto result = blockAddressToLLVMMapping.try_emplace(attr, block);
(void)result;
- assert(
- result.second &&
- "attempting to map a blockaddress attribute that is already mapped");
+ assert(result.second &&
+ "attempting to map a blockaddress attribute that is already mapped");
}
/// Finds the LLVM basic block that corresponds to the given BlockAddressAttr.
``````````
</details>
https://github.com/llvm/llvm-project/pull/139814
More information about the Mlir-commits
mailing list