r245562 - Silence a "not all control paths return a value" warning; NFC.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 20 06:31:16 PDT 2015


Author: aaronballman
Date: Thu Aug 20 08:31:16 2015
New Revision: 245562

URL: http://llvm.org/viewvc/llvm-project?rev=245562&view=rev
Log:
Silence a "not all control paths return a value" warning; NFC.

Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=245562&r1=245561&r2=245562&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Aug 20 08:31:16 2015
@@ -3063,7 +3063,7 @@ static const char *RelocationModelName(l
   case llvm::Reloc::DynamicNoPIC:
     return "dynamic-no-pic";
   }
-  assert(false && "Unknown Reloc::Model kind");
+  llvm_unreachable("Unknown Reloc::Model kind");
 }
 
 static void AddAssemblerKPIC(const ToolChain &ToolChain, const ArgList &Args,




More information about the cfe-commits mailing list