From 9421a37c5564c3f09473c0012b4ac54199dd9cfd Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Mon, 2 Nov 2015 23:10:52 +0000 Subject: [PATCH] Fix the build I just broke git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251854 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h index 07914e386ad..9c37aa01681 100644 --- a/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h +++ b/include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h @@ -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; } -- 2.34.1