Loading llvm/lib/DebugInfo/GSYM/GsymCreator.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,13 @@ uint32_t GsymCreator::insertFile(StringRef Path, llvm::sys::path::Style Style) { llvm::StringRef directory = llvm::sys::path::parent_path(Path, Style); llvm::StringRef filename = llvm::sys::path::filename(Path, Style); FileEntry FE(insertString(directory), insertString(filename)); // We must insert the strings first, then call the FileEntry constructor. // If we inline the insertString() function call into the constructor, the // call order is undefined due to parameter lists not having any ordering // requirements. const uint32_t Dir = insertString(directory); const uint32_t Base = insertString(filename); FileEntry FE(Dir, Base); std::lock_guard<std::recursive_mutex> Guard(Mutex); const auto NextIndex = Files.size(); Loading Loading
llvm/lib/DebugInfo/GSYM/GsymCreator.cpp +7 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,13 @@ uint32_t GsymCreator::insertFile(StringRef Path, llvm::sys::path::Style Style) { llvm::StringRef directory = llvm::sys::path::parent_path(Path, Style); llvm::StringRef filename = llvm::sys::path::filename(Path, Style); FileEntry FE(insertString(directory), insertString(filename)); // We must insert the strings first, then call the FileEntry constructor. // If we inline the insertString() function call into the constructor, the // call order is undefined due to parameter lists not having any ordering // requirements. const uint32_t Dir = insertString(directory); const uint32_t Base = insertString(filename); FileEntry FE(Dir, Base); std::lock_guard<std::recursive_mutex> Guard(Mutex); const auto NextIndex = Files.size(); Loading