HomePhabricator

[OpenCL] Check for extension string extension lookup

Authored by erik2020 on Nov 27 2020, 2:14 AM.

Description

[OpenCL] Check for extension string extension lookup

Calling any of the OpenCLOptions::is*() functions (except isKnown())
with an unknown extension string results in a seg fault. This patch
checks that the extension exists in the map before attempting to access
it.

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D90928

Details

Committed
frasercrmckNov 27 2020, 5:16 AM
Reviewer
Anastasia
Differential Revision
D90928: [OpenCL] Check for extension string extension lookup
Parents
rG63d3198cedbc: [mlir] Fix typos and broken links in LangRef
Branches
Unknown
Tags
Unknown