From a4b6cf14f685a4bf4a033eafb709d01e176db8a8 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 18 Jul 2013 19:13:06 +0000 Subject: Revert "Remove DIBuilder cache of variable TheCU and change the few" This reverts commit r186599 as I didn't want to commit this yet. llvm-svn: 186601 --- llvm/lib/Transforms/Instrumentation/DebugIR.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Instrumentation/DebugIR.cpp') diff --git a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp index 651381d88b5..cea19e6510d 100644 --- a/llvm/lib/Transforms/Instrumentation/DebugIR.cpp +++ b/llvm/lib/Transforms/Instrumentation/DebugIR.cpp @@ -289,9 +289,9 @@ private: "LLVM Version " STR(LLVM_VERSION_MAJOR) "." STR(LLVM_VERSION_MINOR); } - CUNode = - Builder.createCompileUnit(dwarf::DW_LANG_C99, Filename, Directory, - Producer, IsOptimized, Flags, RuntimeVersion); + Builder.createCompileUnit(dwarf::DW_LANG_C99, Filename, Directory, Producer, + IsOptimized, Flags, RuntimeVersion); + CUNode = Builder.getCU(); if (CUToReplace) CUToReplace->replaceAllUsesWith(const_cast(CUNode)); -- cgit v1.2.3