// conversions.
// Flip this switch to measure performance impact of the smart pointers.
-//#define DISABLE_SMART_POINTERS
+#define DISABLE_SMART_POINTERS
namespace llvm {
template<>
return ExprError();
} else {
// Convert the arguments.
- input = PerformCopyInitialization(
- InitializedEntity::InitializeParameter(
+ OwningExprResult InputInit
+ = PerformCopyInitialization(InitializedEntity::InitializeParameter(
FnDecl->getParamDecl(0)),
- SourceLocation(),
- move(input));
- if (input.isInvalid())
+ SourceLocation(),
+ move(input));
+ if (InputInit.isInvalid())
return ExprError();
+ input = move(InputInit);
Input = (Expr *)input.get();
}
# testFormat: The test format to use to interpret tests.
target_obj_root = root.llvm_obj_root
+target_obj_root = '/Users/dgregor/Projects/llvm-build-autotools'
cxxflags = ['-D__STDC_LIMIT_MACROS',
'-D__STDC_CONSTANT_MACROS',
'-Wno-sign-compare',
# testFormat: The test format to use to interpret tests.
target_obj_root = root.llvm_obj_root
+target_obj_root = '/Users/dgregor/Projects/llvm-build-autotools'
cxxflags = ['-D__STDC_LIMIT_MACROS',
'-D__STDC_CONSTANT_MACROS',
'-I%s/include' % root.llvm_src_root,
config.test_format = \
lit.formats.OneCommandPerFileTest(command=[root.clang,
'-fsyntax-only'] + cxxflags,
- dir='%s/lib' % root.llvm_src_root,
+ dir='%s' % root.llvm_src_root,
recursive=True,
pattern='^(.*\\.cpp)$')