summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ExecutionEngine/JIT/JITTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/JIT/JITTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
index 87f3498facc..fce756b0429 100644
--- a/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
+++ b/llvm/unittests/ExecutionEngine/JIT/JITTest.cpp
@@ -73,7 +73,7 @@ TEST(JIT, GlobalInFunction) {
GTy,
false, // Not constant.
GlobalValue::InternalLinkage,
- Constant::getNullValue(GTy),
+ context.getNullValue(GTy),
"myglobal");
// Make a function that points to a global.
OpenPOWER on IntegriCloud