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 | 65481d7b97b89761ca118ea3e63747212eaafe11 (patch) | |
tree | f2b9b4e1f6ce8677c3453c94b0670a4e1062309b /llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | |
parent | 02633f63ebe7a631b02e9c62b432b7449345b2b6 (diff) | |
download | bcm5719-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/Transforms/Instrumentation/DataFlowSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index df1549d405c..0249df1c6d8 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/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); |