aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
-rw-r--r--tools/perf/util/c++/clang-test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/c++/clang-test.cpp b/tools/perf/util/c++/clang-test.cpp
index 3da6bfa4bc54..0f484fbb2b58 100644
--- a/tools/perf/util/c++/clang-test.cpp
+++ b/tools/perf/util/c++/clang-test.cpp
@@ -16,8 +16,9 @@ int test__clang_to_IR(void)
16 perf_clang_scope _scope; 16 perf_clang_scope _scope;
17 17
18 std::unique_ptr<llvm::Module> M = 18 std::unique_ptr<llvm::Module> M =
19 perf::getModuleFromSource("perf-test.c", 19 perf::getModuleFromSource({"-DRESULT=1"},
20 "int myfunc(void) {return 1;}"); 20 "perf-test.c",
21 "int myfunc(void) {return RESULT;}");
21 22
22 if (!M) 23 if (!M)
23 return -1; 24 return -1;