aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Interpreter/InterpreterTest.cpp
diff options
context:
space:
mode:
authorJun Zhang <jun@junz.org>2023-04-16 00:38:38 +0800
committerJun Zhang <jun@junz.org>2023-04-16 09:46:44 +0800
commitfe1f34453d7ef2c0d5f308e0abdb185d6807cfa6 (patch)
treea18975c49ac3296b669c0cf94a9368f9178a27f9 /clang/unittests/Interpreter/InterpreterTest.cpp
parent7c06f63176da05ef45216c13b271a343b72d75d0 (diff)
downloadllvm-fe1f34453d7ef2c0d5f308e0abdb185d6807cfa6.zip
llvm-fe1f34453d7ef2c0d5f308e0abdb185d6807cfa6.tar.gz
llvm-fe1f34453d7ef2c0d5f308e0abdb185d6807cfa6.tar.bz2
[clang-repl] JITTargetAddress --> ExecutorAddr, NFC
Most of Orc and JITLink are movinng away from JITTargetAddress and use ExecutorAddr instead. Signed-off-by: Jun Zhang <jun@junz.org> Differential Revision: https://reviews.llvm.org/D148434
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
-rw-r--r--clang/unittests/Interpreter/InterpreterTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp
index d4900a0..d555911 100644
--- a/clang/unittests/Interpreter/InterpreterTest.cpp
+++ b/clang/unittests/Interpreter/InterpreterTest.cpp
@@ -225,7 +225,7 @@ TEST(IncrementalProcessing, FindMangledNameSymbol) {
std::string MangledName = MangleName(FD);
auto Addr = cantFail(Interp->getSymbolAddress(MangledName));
- EXPECT_NE(0U, Addr);
+ EXPECT_NE(0U, Addr.getValue());
GlobalDecl GD(FD);
EXPECT_EQ(Addr, cantFail(Interp->getSymbolAddress(GD)));
}
@@ -309,7 +309,8 @@ TEST(IncrementalProcessing, InstantiateTemplate) {
std::string MangledName = MangleName(TmpltSpec);
typedef int (*TemplateSpecFn)(void *);
- auto fn = (TemplateSpecFn)cantFail(Interp->getSymbolAddress(MangledName));
+ auto fn =
+ cantFail(Interp->getSymbolAddress(MangledName)).toPtr<TemplateSpecFn>();
EXPECT_EQ(42, fn(NewA));
free(NewA);
}