diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-09 20:05:04 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-09 20:05:04 +0000 |
commit | 19e861a4ffb896f16a691d5ac869e894df3cd464 (patch) | |
tree | 70e54c4bb030e963a4d15d45abb8bb48f8447e3f /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 7ca9d81bce9b3ea6ed2f5e7476a6c4d15c882b2a (diff) |
Make safer variant of alias resolution routine to be default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 747c1400fc..31cd2e3393 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/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()) |