Fix for PR3246: an empty clobber list is the empty string, not a null 
string.

That said, we should probably try and track down the correct clobber 
lists for the targets that don't have them (PPC, ARM, and Sparc), 
so that we can generate correct code.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61298 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp
index f84f6a6..794d7cb 100644
--- a/lib/CodeGen/CGStmt.cpp
+++ b/lib/CodeGen/CGStmt.cpp
@@ -1004,10 +1004,11 @@
   }
   
   // Add machine specific clobbers
-  if (const char *C = Target.getClobbers()) {
+  std::string MachineClobbers = Target.getClobbers();
+  if (!MachineClobbers.empty()) {
     if (!Constraints.empty())
       Constraints += ',';
-    Constraints += C;
+    Constraints += MachineClobbers;
   }
     
   const llvm::FunctionType *FTy =