[llvm] [llvm] Specialize 'NoCFIValue::getType()' (PR #72923)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 00:42:29 PST 2023
================
@@ -975,6 +975,11 @@ class NoCFIValue final : public Constant {
return cast<GlobalValue>(Op<0>().get());
}
+ /// NoCFIValue is always a pointer.
+ inline PointerType *getType() const {
----------------
nikic wrote:
```suggestion
PointerType *getType() const {
```
We don't typically add `inline` -- unless there's a special reason here?
https://github.com/llvm/llvm-project/pull/72923
More information about the llvm-commits
mailing list