[all-commits] [llvm/llvm-project] 7793db: [OpenCL] Check for extension string extension lookup
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Fri Nov 27 05:22:31 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7793db35ca2c1fe63687c0a7140cbec540a9aded
https://github.com/llvm/llvm-project/commit/7793db35ca2c1fe63687c0a7140cbec540a9aded
Author: Erik Tomusk <erik at codeplay.com>
Date: 2020-11-27 (Fri, 27 Nov 2020)
Changed paths:
M clang/include/clang/Basic/OpenCLOptions.h
Log Message:
-----------
[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
More information about the All-commits
mailing list