[all-commits] [llvm/llvm-project] 1c85a2: isBuiltinFunc() uses StringRef instead of const char*
Guillaume Chatelet via All-commits
all-commits at lists.llvm.org
Tue Oct 29 09:37:15 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1c85a2e8dc7e76761d301f9a35374e0aafc757ec
https://github.com/llvm/llvm-project/commit/1c85a2e8dc7e76761d301f9a35374e0aafc757ec
Author: Guillaume Chatelet <gchatelet at google.com>
Date: 2019-10-29 (Tue, 29 Oct 2019)
Changed paths:
M clang/include/clang/Basic/Builtins.h
M clang/lib/Basic/Builtins.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
Log Message:
-----------
isBuiltinFunc() uses StringRef instead of const char*
Summary: This prevents a bug when passing nullptr, StringRef ctor would call strlen(nullptr).
Reviewers: vlad.tsyrklevich
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D69569
More information about the All-commits
mailing list