From 8b0703d641f8a523eec31dd2352c4a650b6738b9 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 8 Sep 2012 08:22:13 +0000 Subject: [PATCH] Do not construct StringRef from NULL argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163465 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Basic/Targets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index 1d5ee0c614..8bb5a2dd43 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -3014,7 +3014,7 @@ public: return llvm::StringSwitch(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)) -- 2.40.0