[OpenCL] Simplify InsertOCLBuiltinDeclarationsFromTable
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 9 Apr 2021 10:54:15 +0000 (11:54 +0100)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Fri, 9 Apr 2021 10:54:15 +0000 (11:54 +0100)
commitaf67deb005cae4e87109d8ad534446b300351483
tree9df379d18bbee63ba293771697a39753b949f8d4
parent99b46a6c5ba70f49effe1e16516bd08a8440c73d
[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.
clang/lib/Sema/SemaLookup.cpp