[llvm] r229494 - OrcJIT: Appease msc18 not to be confused on executeCompileCallback<OrcX86_64>.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Feb 17 04:53:16 PST 2015
Author: chapuni
Date: Tue Feb 17 06:53:16 2015
New Revision: 229494
URL: http://llvm.org/viewvc/llvm-project?rev=229494&view=rev
Log:
OrcJIT: Appease msc18 not to be confused on executeCompileCallback<OrcX86_64>.
Modified:
llvm/trunk/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp?rev=229494&r1=229493&r2=229494&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/OrcTargetSupport.cpp Tue Feb 17 06:53:16 2015
@@ -52,8 +52,9 @@ const char* OrcX86_64::ResolverBlockName
void OrcX86_64::insertResolverBlock(
Module &M, JITCompileCallbackManagerBase<OrcX86_64> &JCBM) {
- uint64_t CallbackAddr = static_cast<uint64_t>(
- reinterpret_cast<uintptr_t>(executeCompileCallback<OrcX86_64>));
+ auto CallbackPtr = executeCompileCallback<OrcX86_64>;
+ uint64_t CallbackAddr =
+ static_cast<uint64_t>(reinterpret_cast<uintptr_t>(CallbackPtr));
std::ostringstream AsmStream;
Triple TT(M.getTargetTriple());
More information about the llvm-commits
mailing list