]> granicus.if.org Git - clang/commitdiff
Sanitizers.h: Modularize/Fix ODR violations by making inline functions non-static
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 27 Oct 2017 20:40:45 +0000 (20:40 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 27 Oct 2017 20:40:45 +0000 (20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316793 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Sanitizers.h

index 5317720095e06c6489feeec1476b7460d80bfa28..1b936c7d115cf826605a76d95adf4088b16777e1 100644 (file)
@@ -80,7 +80,7 @@ SanitizerMask parseSanitizerValue(StringRef Value, bool AllowGroups);
 SanitizerMask expandSanitizerGroups(SanitizerMask Kinds);
 
 /// Return the sanitizers which do not affect preprocessing.
-static inline SanitizerMask getPPTransparentSanitizers() {
+inline SanitizerMask getPPTransparentSanitizers() {
   return SanitizerKind::CFI | SanitizerKind::Integer |
          SanitizerKind::Nullability | SanitizerKind::Undefined;
 }