File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
compiler-rt/lib/scudo/standalone Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ inline void enableSystemMemoryTaggingTestOnly() {
108108
109109#else // !SCUDO_CAN_USE_MTE
110110
111- inline bool systemSupportsMemoryTagging () { return false ; }
111+ inline constexpr bool systemSupportsMemoryTagging () { return false ; }
112112
113113inline NORETURN bool systemDetectsMemoryTagFaultsTestOnly () {
114114 UNREACHABLE (" memory tagging not supported" );
@@ -261,7 +261,7 @@ inline uptr loadTag(uptr Ptr) {
261261
262262#else
263263
264- inline bool systemSupportsMemoryTagging () { return false ; }
264+ inline constexpr bool systemSupportsMemoryTagging () { return false ; }
265265
266266inline NORETURN bool systemDetectsMemoryTagFaultsTestOnly () {
267267 UNREACHABLE (" memory tagging not supported" );
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ struct Options {
3838 }
3939};
4040
41- template <typename Config> bool useMemoryTagging (const Options &Options) {
41+ template <typename Config>
42+ constexpr bool useMemoryTagging (const Options &Options) {
4243 return allocatorSupportsMemoryTagging<Config>() &&
4344 Options.get (OptionBit::UseMemoryTagging);
4445}
You can’t perform that action at this time.
0 commit comments