llvm-mirror/lib
Chandler Carruth 3928c84ba1 Revert "Use const DebugLoc&"
This reverts r358910 (git commit 2b744665308fc8d30a3baecb4947f2bd81aa7d30)

While this patch *seems* trivial and safe and correct, it is not. The
copies are actually load bearing copies. You can observe this with MSan
or other ways of checking for use-after-destroy, but otherwise this may
result in ... difficult to debug inexplicable behavior.

I suspect the issue is that the debug location is used after the
original reference to it is removed. The metadata backing it gets
destroyed as its last references goes away, and then we reference it
later through these const references.

llvm-svn: 358940
2019-04-23 01:42:07 +00:00
..
Analysis [InstSimplify] Move masked.gather w/no active lanes handling to InstSimplify from InstCombine 2019-04-22 19:30:01 +00:00
AsmParser
BinaryFormat
Bitcode Use llvm::lower_bound. NFC 2019-04-12 02:02:06 +00:00
CodeGen Revert "Use const DebugLoc&" 2019-04-23 01:42:07 +00:00
DebugInfo [llvm-symbolizer] Fix section index at the end of a section 2019-04-20 13:00:09 +00:00
Demangle llvm-undname: Fix an assert-on-invalid, found by oss-fuzz 2019-04-22 15:05:18 +00:00
ExecutionEngine [JITLink] Remove a lot of reduntant 'JITLink_' prefixes. NFC. 2019-04-22 03:03:09 +00:00
Fuzzer
FuzzMutate
IR [PGO/SamplePGO][NFC] Move the function updateProfWeight from Instruction 2019-04-22 17:04:51 +00:00
IRReader
LineEditor
Linker
LTO [NewPassManager] Adding pass tuning options: loop vectorize. 2019-04-19 16:11:59 +00:00
MC [llvm] Prevent duplicate files in debug line header in dwarf 5: another attempt 2019-04-19 02:26:56 +00:00
MCA
Object [WebAssembly] Object: Improve error messages on invalid section 2019-04-20 00:11:46 +00:00
ObjectYAML MinidumpYAML: Fix ambiguity between std::make_unique and llvm::make_unique 2019-04-18 15:06:03 +00:00
Option
Passes [NewPM] Add Option handling for SimpleLoopUnswitch 2019-04-22 10:35:07 +00:00
ProfileData
Remarks
Support [CachePruning] Simplify comparator 2019-04-21 06:17:40 +00:00
TableGen
Target [SelectionDAG] move splat util functions up from x86 lowering 2019-04-22 22:43:36 +00:00
Testing
TextAPI
ToolDrivers
Transforms [InstCombine] Eliminate stores to constant memory 2019-04-22 20:28:19 +00:00
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt