Skip to content

Commit 141496b

Browse files
committed
!fixup address comments, fix builds
1 parent 56c4ddd commit 141496b

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
@@ -2765,8 +2765,8 @@ Query for this feature with ``__has_builtin(__builtin_assume_separate_storage)``
27652765
-------------------------------------
27662766
27672767
``__builtin_assume_dereferenceable`` is used to provide the optimizer with the
2768-
knowledge that the pointer argument P is dereferenceable up to the specified
2769-
number of bytes.
2768+
knowledge that the pointer argument P is dereferenceable up to at least the
2769+
specified number of bytes.
27702770
27712771
**Syntax**:
27722772

llvm/lib/IR/IRBuilder.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,14 +1284,6 @@ CallInst *IRBuilderBase::CreateDereferenceableAssumption(Value *PtrValue,
12841284
{DereferenceableOpB});
12851285
}
12861286

1287-
CallInst *IRBuilderBase::CreateNonNullAssumption(Value *PtrValue) {
1288-
assert(isa<PointerType>(PtrValue->getType()) &&
1289-
"trying to create an nonnull assumption on a non-pointer?");
1290-
SmallVector<Value *, 4> Vals({PtrValue});
1291-
OperandBundleDefT<Value *> NonNullOpB("nonnull", Vals);
1292-
return CreateAssumption(ConstantInt::getTrue(getContext()), {NonNullOpB});
1293-
}
1294-
12951287
IRBuilderDefaultInserter::~IRBuilderDefaultInserter() = default;
12961288
IRBuilderCallbackInserter::~IRBuilderCallbackInserter() = default;
12971289
IRBuilderFolder::~IRBuilderFolder() = default;

0 commit comments

Comments
 (0)