[llvm] r251854 - Fix the build I just broke

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 15:10:52 PST 2015


Author: dblaikie
Date: Mon Nov  2 17:10:52 2015
New Revision: 251854

URL: http://llvm.org/viewvc/llvm-project?rev=251854&view=rev
Log:
Fix the build I just broke

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h

Modified: llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h?rev=251854&r1=251853&r2=251854&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h Mon Nov  2 17:10:52 2015
@@ -338,7 +338,10 @@ private:
 
   static std::string mangle(StringRef Name, const DataLayout &DL) {
     std::string MangledName;
-    Mangler::getNameWithPrefix(raw_string_ostream(MangledName), Name, DL);
+    {
+      raw_string_ostream MangledNameStream(MangledName);
+      Mangler::getNameWithPrefix(MangledNameStream, Name, DL);
+    }
     return MangledName;
   }
 




More information about the llvm-commits mailing list