summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCFastISel.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-26 06:14:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-26 06:14:40 +0000
commit65481d7b97b89761ca118ea3e63747212eaafe11 (patch)
treef2b9b4e1f6ce8677c3453c94b0670a4e1062309b /llvm/lib/Target/PowerPC/PPCFastISel.cpp
parent02633f63ebe7a631b02e9c62b432b7449345b2b6 (diff)
downloadbcm5719-llvm-65481d7b97b89761ca118ea3e63747212eaafe11.tar.gz
bcm5719-llvm-65481d7b97b89761ca118ea3e63747212eaafe11.zip
Revert "Prevent alias from pointing to weak aliases."
This reverts commit r204781. I will follow up to with msan folks to see what is what they were trying to do with aliases to weak aliases. llvm-svn: 204784
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFastISel.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFastISel.cpp b/llvm/lib/Target/PowerPC/PPCFastISel.cpp
index dd45683032a..4753160e091 100644
--- a/llvm/lib/Target/PowerPC/PPCFastISel.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFastISel.cpp
@@ -1863,7 +1863,7 @@ unsigned PPCFastISel::PPCMaterializeGV(const GlobalValue *GV, MVT VT) {
if (!GVar) {
// If GV is an alias, use the aliasee for determining thread-locality.
if (const GlobalAlias *GA = dyn_cast<GlobalAlias>(GV))
- GVar = dyn_cast_or_null<GlobalVariable>(GA->getAliasedGlobal());
+ GVar = dyn_cast_or_null<GlobalVariable>(GA->resolveAliasedGlobal(false));
}
// FIXME: We don't yet handle the complexity of TLS.
OpenPOWER on IntegriCloud