[llvm] fd1c156 - Revert "[NFC][ObjectSizeOffset] Add template stuff for Visual Studio"
Bill Wendling via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 7 03:45:45 PST 2024
Author: Bill Wendling
Date: 2024-01-07T03:45:16-08:00
New Revision: fd1c156e5d6584684ce58c0536dca96cedcc41f0
URL: https://github.com/llvm/llvm-project/commit/fd1c156e5d6584684ce58c0536dca96cedcc41f0
DIFF: https://github.com/llvm/llvm-project/commit/fd1c156e5d6584684ce58c0536dca96cedcc41f0.diff
LOG: Revert "[NFC][ObjectSizeOffset] Add template stuff for Visual Studio"
This reverts commit 0903d992cc961281a0bffc8704796f27f8c2e696.
This is causing all non-Visual Studio builds fail.
Added:
Modified:
llvm/include/llvm/Analysis/MemoryBuiltins.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h
index 7df0b041926884..d080a5956a4d8b 100644
--- a/llvm/include/llvm/Analysis/MemoryBuiltins.h
+++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h
@@ -214,7 +214,7 @@ template <typename T, class C> class SizeOffsetType {
/// 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 @@ class ObjectSizeOffsetVisitor
/// \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 @@ class SizeOffsetValue : public SizeOffsetType<Value *, SizeOffsetValue> {
/// \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:
More information about the llvm-commits
mailing list