summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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/CodeGen
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/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 747c1400fcc..31cd2e3393e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -949,7 +949,7 @@ SDValue SelectionDAG::getGlobalAddress(const GlobalValue *GV,
if (!GVar) {
// If GV is an alias then use the aliasee for determining thread-localness.
if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV))
- GVar = dyn_cast_or_null<GlobalVariable>(GA->resolveAliasedGlobal());
+ GVar = dyn_cast_or_null<GlobalVariable>(GA->resolveAliasedGlobal(false));
}
if (GVar && GVar->isThreadLocal())
OpenPOWER on IntegriCloud