]> granicus.if.org Git - clang/commitdiff
Fix that AlignedAllocation.h doesn't compile because of VersionTuple
authorRaphael Isemann <teemperor@gmail.com>
Tue, 12 Jun 2018 03:43:21 +0000 (03:43 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 12 Jun 2018 03:43:21 +0000 (03:43 +0000)
Summary:
 rL334399 put VersionTuple in the llvm namespace, but this header still assumes it's in the clang namespace.
This leads to compilation failures with enabled modules when building Clang.

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D48062

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334471 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/AlignedAllocation.h

index a84d22dda81a6ecb39971cc07e9f87fce3a9b1d2..9751f4118447776e678c09c15fa1be7bf5c0caa0 100644 (file)
 
 namespace clang {
 
-inline VersionTuple alignedAllocMinVersion(llvm::Triple::OSType OS) {
+inline llvm::VersionTuple alignedAllocMinVersion(llvm::Triple::OSType OS) {
   switch (OS) {
   default:
     break;
   case llvm::Triple::Darwin:
   case llvm::Triple::MacOSX: // Earliest supporting version is 10.13.
-    return VersionTuple(10U, 13U);
+    return llvm::VersionTuple(10U, 13U);
   case llvm::Triple::IOS:
   case llvm::Triple::TvOS: // Earliest supporting version is 11.0.0.
-    return VersionTuple(11U);
+    return llvm::VersionTuple(11U);
   case llvm::Triple::WatchOS: // Earliest supporting version is 4.0.0.
-    return VersionTuple(4U);
+    return llvm::VersionTuple(4U);
   }
 
   llvm_unreachable("Unexpected OS");