[cfe-commits] r163465 - /cfe/trunk/lib/Basic/Targets.cpp

Anton Korobeynikov asl at math.spbu.ru
Sat Sep 8 01:22:14 PDT 2012


Author: asl
Date: Sat Sep  8 03:22:13 2012
New Revision: 163465

URL: http://llvm.org/viewvc/llvm-project?rev=163465&view=rev
Log:
Do not construct StringRef from NULL argument.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=163465&r1=163464&r2=163465&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Sat Sep  8 03:22:13 2012
@@ -3014,7 +3014,7 @@
     return llvm::StringSwitch<const char*>(Name)
       .Cases("cortex-a8", "cortex-a9", "A")
       .Cases("cortex-m3", "cortex-m4", "cortex-m0", "M")
-      .Default(0);
+      .Default("");
   }
   virtual bool setCPU(const std::string &Name) {
     if (!getCPUDefineSuffix(Name))





More information about the cfe-commits mailing list