From d09986a6fb193d429863184bffac21340dc6eb11 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 18 Mar 2009 08:02:40 +0000 Subject: [PATCH] Driver: Add assert and FIXME; arguments which act as linker inputs (e.g., -filelist) are currently broken. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67183 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index f06166e930..f2e965c1a7 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -665,6 +665,9 @@ void Driver::BuildJobsForAction(Compilation &C, InputInfo &Result) const { llvm::PrettyStackTraceString CrashInfo("Building compilation jobs for action"); if (const InputAction *IA = dyn_cast(A)) { + // FIXME: This is broken, linker inputs won't work here. + assert(isa(IA->getInputArg()) && "FIXME: Linker inputs"); + IA->getInputArg().claim(); const char *Name = IA->getInputArg().getValue(C.getArgs()); Result = InputInfo(Name, A->getType(), Name); -- 2.40.0