-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Closed
Labels
Milestone
Description
FunctionAttrs incorrectly infers that the following function returns nonnull (https://llvm.godbolt.org/z/49Kbq15xn):
define ptr @test(ptr nonnull %arg) {
%res = getelementptr i8, ptr %arg, i64 -8
ret ptr %res
}
This is because the code assumes that the result of a GEP is non-null if the source is non-null here:
case Instruction::GetElementPtr: |
RalfJung, QuarticCat, dtcxzyw, Enter-tainer, michaelwoerister and 3 more
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done