summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-09 20:05:04 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-09 20:05:04 +0000
commit1a1140429ee5ca58d9a25aea570940826e478125 (patch)
treeabc276017e04ec02cf4b83ba2f6f5305b0f34c3f /llvm/lib/ExecutionEngine
parentfac18fe2ee18df098626007137350dfa00c16bab (diff)
downloadbcm5719-llvm-1a1140429ee5ca58d9a25aea570940826e478125.tar.gz
bcm5719-llvm-1a1140429ee5ca58d9a25aea570940826e478125.zip
Make safer variant of alias resolution routine to be default
llvm-svn: 56005
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
index da4cd095fad..02752a01cdd 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
@@ -567,7 +567,7 @@ void *JITEmitter::getPointerToGlobal(GlobalValue *V, void *Reference,
return TheJIT->getOrEmitGlobalVariable(GV);
}
if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V))
- return TheJIT->getPointerToGlobal(GA->resolveAliasedGlobal());
+ return TheJIT->getPointerToGlobal(GA->resolveAliasedGlobal(false));
// If we have already compiled the function, return a pointer to its body.
Function *F = cast<Function>(V);
OpenPOWER on IntegriCloud