Skip to content

Commit 2835b3c

Browse files
committed
!fixup address comments, fix builds
1 parent b2e443c commit 2835b3c

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

clang/docs/LanguageExtensions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2870,8 +2870,8 @@ Query for this feature with ``__has_builtin(__builtin_assume_separate_storage)``
28702870
-------------------------------------
28712871
28722872
``__builtin_assume_dereferenceable`` is used to provide the optimizer with the
2873-
knowledge that the pointer argument P is dereferenceable up to the specified
2874-
number of bytes.
2873+
knowledge that the pointer argument P is dereferenceable up to at least the
2874+
specified number of bytes.
28752875
28762876
**Syntax**:
28772877

llvm/lib/IR/IRBuilder.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,14 +1294,6 @@ CallInst *IRBuilderBase::CreateDereferenceableAssumption(Value *PtrValue,
12941294
{DereferenceableOpB});
12951295
}
12961296

1297-
CallInst *IRBuilderBase::CreateNonNullAssumption(Value *PtrValue) {
1298-
assert(isa<PointerType>(PtrValue->getType()) &&
1299-
"trying to create an nonnull assumption on a non-pointer?");
1300-
SmallVector<Value *, 4> Vals({PtrValue});
1301-
OperandBundleDefT<Value *> NonNullOpB("nonnull", Vals);
1302-
return CreateAssumption(ConstantInt::getTrue(getContext()), {NonNullOpB});
1303-
}
1304-
13051297
IRBuilderDefaultInserter::~IRBuilderDefaultInserter() = default;
13061298
IRBuilderCallbackInserter::~IRBuilderCallbackInserter() = default;
13071299
IRBuilderFolder::~IRBuilderFolder() = default;

0 commit comments

Comments
 (0)