llvm-mirror/unittests
Duncan P. N. Exon Smith 6eb8c34f72 IR: Fix ConstantExpr::replaceUsesOfWithOnConstant()
Change `ConstantExpr` to follow the model the other constants are using:
only malloc a replacement if it's going to be used.  This fixes a subtle
bug where if an API user had used `ConstantExpr::get()` already to
create the replacement but hadn't given it any users, we'd delete the
replacement.

This relies on r216015 to thread `OnlyIfReduced` through
`ConstantExpr::getWithOperands()`.

llvm-svn: 216016
2014-08-19 20:03:35 +00:00
..
ADT ADT: Unit test for ArrayRef::equals change in r215986 2014-08-19 19:18:46 +00:00
Analysis Modernize the .ll parsing interface. 2014-08-19 16:58:54 +00:00
Bitcode Modernize the .ll parsing interface. 2014-08-19 16:58:54 +00:00
CodeGen DIE: Pass ownership of children via std::unique_ptr rather than raw pointer. 2014-04-25 20:00:34 +00:00
DebugInfo [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
ExecutionEngine Don't own the buffer in object::Binary. 2014-08-19 18:44:46 +00:00
IR IR: Fix ConstantExpr::replaceUsesOfWithOnConstant() 2014-08-19 20:03:35 +00:00
LineEditor [CMake] LineEditorTests: Add Support to link_components. 2014-07-24 11:44:33 +00:00
Linker [C++11] Use 'nullptr'. 2014-06-08 22:29:17 +00:00
MC [CMake] Update libdeps. 2014-07-14 05:01:53 +00:00
Option Retire llvm::array_endof in favor of non-member std::end. 2014-04-12 16:15:53 +00:00
Support Convert an ownership comment with std::uinque_ptr. 2014-08-17 22:20:33 +00:00
Transforms [Debug Info] add DISubroutineType and its creation takes DITypeArray. 2014-07-28 22:24:06 +00:00
CMakeLists.txt Invert the MC -> Object dependency. 2014-07-03 02:01:39 +00:00
Makefile Invert the MC -> Object dependency. 2014-07-03 02:01:39 +00:00
Makefile.unittest With rpaths being set correctly, SHLIBPATH_VAR is not needed anymore. 2014-02-28 16:16:51 +00:00