diff options
| author | Nico Weber <thakis@chromium.org> | 2019-10-30 15:54:09 -0400 |
|---|---|---|
| committer | Nico Weber <thakis@chromium.org> | 2019-10-31 07:34:32 -0400 |
| commit | 4b6597f49896529170fde38f5d5fb46d687e0c71 (patch) | |
| tree | d9e09e5cbd171a96b5f494acaa49697d4c1fd116 /clang/lib/Driver/ToolChains/Darwin.cpp | |
| parent | a780b94cd1b03c3642a2662ea59dd6cfa7d6b81f (diff) | |
| download | bcm5719-llvm-4b6597f49896529170fde38f5d5fb46d687e0c71.tar.gz bcm5719-llvm-4b6597f49896529170fde38f5d5fb46d687e0c71.zip | |
Make flang driver stuff work on macOS
6bf55804 added special-case code for TY_PP_Fortran to
ToolChain::LookupTypeForExtension(), but
Darwin::LookupTypeForExtension() overrode that method without calling
the superclass implementation.
Make it call the superclass implementation to fix things.
Differential Revision: https://reviews.llvm.org/D69636
Diffstat (limited to 'clang/lib/Driver/ToolChains/Darwin.cpp')
| -rw-r--r-- | clang/lib/Driver/ToolChains/Darwin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp index ee08b8208d9..cb76fb0da18 100644 --- a/clang/lib/Driver/ToolChains/Darwin.cpp +++ b/clang/lib/Driver/ToolChains/Darwin.cpp @@ -737,7 +737,7 @@ Darwin::Darwin(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) CudaInstallation(D, Triple, Args) {} types::ID MachO::LookupTypeForExtension(StringRef Ext) const { - types::ID Ty = types::lookupTypeForExtension(Ext); + types::ID Ty = ToolChain::lookupTypeForExtension(Ext); // Darwin always preprocesses assembly files (unless -x is used explicitly). if (Ty == types::TY_PP_Asm) |

