[Hexagon] Make local array static in getIntrinsicForHexagonNonClangBuiltin
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 22 Nov 2022 17:11:17 +0000 (09:11 -0800)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Tue, 22 Nov 2022 17:48:01 +0000 (09:48 -0800)
It should not be created on every call, the omission of `static` was a bug
in the patch that introduced it.

clang/lib/CodeGen/CGBuiltin.cpp

index 7ae5508..801872d 100644 (file)
@@ -19171,7 +19171,7 @@ getIntrinsicForHexagonNonClangBuiltin(unsigned BuiltinID) {
     Intrinsic::ID IntrinsicID;
     unsigned VecLen;
   };
-  Info Infos[] = {
+  static Info Infos[] = {
 #define CUSTOM_BUILTIN_MAPPING(x,s) \
   { Hexagon::BI__builtin_HEXAGON_##x, Intrinsic::hexagon_##x, s },
     CUSTOM_BUILTIN_MAPPING(L2_loadrub_pci, 0)