Benjamin Kramer
63d39da992
Give unit test its own LLVMContext so MDNodes aren't leaked even if we never call llvm_shutdown.
...
Found by valgrind.
llvm-svn: 194797
2013-11-15 09:34:33 +00:00
Aaron Ballman
3cab3740b6
Silencing an MSVC warning.
...
llvm-svn: 192042
2013-10-05 19:41:41 +00:00
Benjamin Kramer
d36f1abefd
IRBuilder: Add RAII objects to reset insertion points or fast math flags.
...
Inspired by the object from the SLPVectorizer. This found a minor bug in the
debug loc restoration in the vectorizer where the location of a following
instruction was attached instead of the location from the original instruction.
llvm-svn: 191673
2013-09-30 15:39:48 +00:00
NAKAMURA Takumi
d86cd7855b
IRTests/IRBuilderTest.cpp: GetIntTy: Delete DL at yourself since it is not linked.
...
llvm-svn: 173238
2013-01-23 08:31:28 +00:00
NAKAMURA Takumi
7493658645
IRTests/IRBuilderTest.cpp: Let GV added to the module.
...
It fixes --vg-leak.
llvm-svn: 173237
2013-01-23 08:30:39 +00:00
Chandler Carruth
74b6a77d75
Rename the VMCore unittest tree to IR. Somehow was missed when doing the
...
library rename.
llvm-svn: 171747
2013-01-07 15:35:46 +00:00