[all-commits] [llvm/llvm-project] af67de: [OpenCL] Simplify InsertOCLBuiltinDeclarationsFrom...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Fri Apr 9 03:55:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af67deb005cae4e87109d8ad534446b300351483
      https://github.com/llvm/llvm-project/commit/af67deb005cae4e87109d8ad534446b300351483
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-04-09 (Fri, 09 Apr 2021)

  Changed paths:
    M clang/lib/Sema/SemaLookup.cpp

  Log Message:
  -----------
  [OpenCL] Simplify InsertOCLBuiltinDeclarationsFromTable

 - Use a range-based for loop.  This will help a later patch to skip
   prototypes that use an unavailable return type or argument type.

 - Replace a dyn_cast with a cast, as we are only dealing with
   FunctionProtoType Types here.




More information about the All-commits mailing list