[all-commits] [llvm/llvm-project] ac47db: [Attributes] Return Optional from getAllocSizeArgs...
    Nikita Popov via All-commits 
    all-commits at lists.llvm.org
       
    Tue Oct 11 02:10:19 PDT 2022
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac47db6acad29b6e077593430338be69d81cb6c0
      https://github.com/llvm/llvm-project/commit/ac47db6acad29b6e077593430338be69d81cb6c0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-10-11 (Tue, 11 Oct 2022)
  Changed paths:
    M llvm/include/llvm/IR/Attributes.h
    M llvm/lib/IR/AttributeImpl.h
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  Log Message:
  -----------
  [Attributes] Return Optional from getAllocSizeArgs() (NFC)
As suggested on D135572, return Optional<> from getAllocSizeArgs()
rather than the peculiar pair(0, 0) sentinel.
The method on Attribute itself does not return Optional, because
the attribute must exist in that case.
    
    
More information about the All-commits
mailing list