diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-26 06:14:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-26 06:14:40 +0000 |
commit | 72db10a9959431a710712f64d4b98299ab5a022d (patch) | |
tree | 8ea039520d3cec3f1adcf367c2a6915744f6a559 /lib/Transforms/Instrumentation | |
parent | 360ee971798ebccc177f7e1c2947a74e3bd9fbc0 (diff) | |
download | llvm-72db10a9959431a710712f64d4b98299ab5a022d.tar.gz llvm-72db10a9959431a710712f64d4b98299ab5a022d.tar.bz2 llvm-72db10a9959431a710712f64d4b98299ab5a022d.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204784 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r-- | lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index df1549d405..0249df1c6d 100644 --- a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -554,7 +554,8 @@ bool DataFlowSanitizer::runOnModule(Module &M) { ++i; // Don't stop on weak. We assume people aren't playing games with the // instrumentedness of overridden weak aliases. - if (Function *F = dyn_cast<Function>(GA->getAliasedGlobal())) { + if (Function *F = dyn_cast<Function>( + GA->resolveAliasedGlobal(/*stopOnWeak=*/false))) { bool GAInst = isInstrumented(GA), FInst = isInstrumented(F); if (GAInst && FInst) { addGlobalNamePrefix(GA); |