aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Builtins.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@mozilla.com>2022-12-23 11:36:56 +0100
committerserge-sans-paille <sguelton@mozilla.com>2022-12-23 11:36:56 +0100
commitb7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f (patch)
tree9059fcc00424d7b8bbdf317a777620d0fee08e8c /clang/lib/Basic/Builtins.cpp
parent719d98dfa841c522d8d452f0685e503538415a53 (diff)
downloadllvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.zip
llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.gz
llvm-b7065a31b5e7e0bbdae1cbb6cd06fcfe05b7758f.tar.bz2
Revert "[clang] Use a StringRef instead of a raw char pointer to store builtin and call information"
Failing builds: https://lab.llvm.org/buildbot#builders/9/builds/19030 This is GCC specific and has been reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108158 This reverts commit 719d98dfa841c522d8d452f0685e503538415a53.
Diffstat (limited to 'clang/lib/Basic/Builtins.cpp')
-rw-r--r--clang/lib/Basic/Builtins.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Basic/Builtins.cpp b/clang/lib/Basic/Builtins.cpp
index 375f474..0e05668 100644
--- a/clang/lib/Basic/Builtins.cpp
+++ b/clang/lib/Basic/Builtins.cpp
@@ -18,9 +18,8 @@
#include "llvm/ADT/StringRef.h"
using namespace clang;
-static constexpr Builtin::Info BuiltinInfo[] = {
- {"not a builtin function", nullptr, nullptr, nullptr, ALL_LANGUAGES,
- nullptr},
+static const Builtin::Info BuiltinInfo[] = {
+ { "not a builtin function", nullptr, nullptr, nullptr, ALL_LANGUAGES,nullptr},
#define BUILTIN(ID, TYPE, ATTRS) \
{ #ID, TYPE, ATTRS, nullptr, ALL_LANGUAGES, nullptr },
#define LANGBUILTIN(ID, TYPE, ATTRS, LANGS) \