diff options
author | Bill Wendling <morbo@google.com> | 2024-01-07 03:45:16 -0800 |
---|---|---|
committer | Bill Wendling <morbo@google.com> | 2024-01-07 03:45:16 -0800 |
commit | fd1c156e5d6584684ce58c0536dca96cedcc41f0 (patch) | |
tree | b79c3824f6d2f66f11eb99931aee8d28657af4b8 | |
parent | 0903d992cc961281a0bffc8704796f27f8c2e696 (diff) |
Revert "[NFC][ObjectSizeOffset] Add template stuff for Visual Studio"
This reverts commit 0903d992cc961281a0bffc8704796f27f8c2e696.
This is causing all non-Visual Studio builds fail.
-rw-r--r-- | llvm/include/llvm/Analysis/MemoryBuiltins.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h index 7df0b0419268..d080a5956a4d 100644 --- a/llvm/include/llvm/Analysis/MemoryBuiltins.h +++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h @@ -214,7 +214,7 @@ public: /// SizeOffsetAPInt - Used by \p ObjectSizeOffsetVisitor, which works with /// \p APInts. class SizeOffsetAPInt : public SizeOffsetType<APInt, SizeOffsetAPInt> { - template <typename T, class C> friend class SizeOffsetType; + friend class SizeOffsetType; static bool known(APInt V) { return V.getBitWidth() > 1; } public: @@ -276,7 +276,7 @@ private: /// \p Values. class SizeOffsetWeakTrackingVH; class SizeOffsetValue : public SizeOffsetType<Value *, SizeOffsetValue> { - template <typename T, class C> friend class SizeOffsetType; + friend class SizeOffsetType; static bool known(Value *V) { return V != nullptr; } public: @@ -289,7 +289,7 @@ public: /// \p DenseMap. class SizeOffsetWeakTrackingVH : public SizeOffsetType<WeakTrackingVH, SizeOffsetWeakTrackingVH> { - template <typename T, class C> friend class SizeOffsetType; + friend class SizeOffsetType; static bool known(WeakTrackingVH V) { return V.pointsToAliveValue(); } public: |