[llvm] [llvm] Specialize 'NoCFIValue::getType()' (PR #72923)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 01:24:12 PST 2023
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 44c796d5669e78dc020fc4b00865ed6fea42dd4d e10971f91cba1c1da658ab171f5bff52b3db8bcb -- llvm/include/llvm/IR/Constants.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/Constants.h b/llvm/include/llvm/IR/Constants.h
index 2f7fc5652c..b4c43794a5 100644
--- a/llvm/include/llvm/IR/Constants.h
+++ b/llvm/include/llvm/IR/Constants.h
@@ -976,9 +976,7 @@ public:
}
/// NoCFIValue is always a pointer.
- PointerType *getType() const {
- return cast<PointerType>(Value::getType());
- }
+ PointerType *getType() const { return cast<PointerType>(Value::getType()); }
/// Methods for support type inquiry through isa, cast, and dyn_cast:
static bool classof(const Value *V) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/72923
More information about the llvm-commits
mailing list