From e8b555c6bb93cd3431a18a624bff81020bec2a3b Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 19 Apr 2016 16:06:50 +0000 Subject: IR: Use Optional instead of unique_ptr for debug info ODR type map, NFC Save a level of malloc indirection. llvm-svn: 266749 --- llvm/lib/IR/LLVMContext.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/IR/LLVMContext.cpp') diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp index 0d4f724..45c2806 100644 --- a/llvm/lib/IR/LLVMContext.cpp +++ b/llvm/lib/IR/LLVMContext.cpp @@ -317,8 +317,7 @@ void LLVMContext::enableDebugTypeODRUniquing() { if (pImpl->DITypeMap) return; - pImpl->DITypeMap = - llvm::make_unique>(); + pImpl->DITypeMap.emplace(); } void LLVMContext::disableDebugTypeODRUniquing() { pImpl->DITypeMap.reset(); } -- cgit v1.1