[lld] r177424 - Fix "control reaches end of non-void function" compiling lld on gcc.
Andy Gibbs
andyg1001 at hotmail.co.uk
Tue Mar 19 12:13:37 PDT 2013
Author: andyg
Date: Tue Mar 19 14:13:36 2013
New Revision: 177424
URL: http://llvm.org/viewvc/llvm-project?rev=177424&view=rev
Log:
Fix "control reaches end of non-void function" compiling lld on gcc.
Modified:
lld/trunk/lib/Driver/Drivers.cpp
Modified: lld/trunk/lib/Driver/Drivers.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/Drivers.cpp?rev=177424&r1=177423&r2=177424&view=diff
==============================================================================
--- lld/trunk/lib/Driver/Drivers.cpp (original)
+++ lld/trunk/lib/Driver/Drivers.cpp Tue Mar 19 14:13:36 2013
@@ -232,8 +232,9 @@ std::unique_ptr<Driver> Driver::create(
case Flavor::ld64:
case Flavor::link:
case Flavor::invalid:
- llvm_unreachable("Unsupported flavor");
+ break;
}
+ llvm_unreachable("Unsupported flavor");
}
std::unique_ptr<llvm::opt::ArgList>
More information about the llvm-commits
mailing list