From b2f93ff457827757e8a05961314bc549a2c41770 Mon Sep 17 00:00:00 2001 From: Andrea Mattavelli Date: Tue, 14 Feb 2017 11:34:56 +0000 Subject: Increased the type size for the stop-after-n-instructions option to avoid too strict limitations (LLVM >= 3.0) --- lib/Core/Executor.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/Core/Executor.cpp') diff --git a/lib/Core/Executor.cpp b/lib/Core/Executor.cpp index c369b864..58603e7c 100644 --- a/lib/Core/Executor.cpp +++ b/lib/Core/Executor.cpp @@ -290,10 +290,17 @@ namespace { clEnumValEnd), cl::ZeroOrMore); +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 0) cl::opt StopAfterNInstructions("stop-after-n-instructions", cl::desc("Stop execution after specified number of instructions (default=0 (off))"), cl::init(0)); +#else + cl::opt + StopAfterNInstructions("stop-after-n-instructions", + cl::desc("Stop execution after specified number of instructions (default=0 (off))"), + cl::init(0)); +#endif cl::opt MaxForks("max-forks", -- cgit 1.4.1