summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-05-20 19:00:58 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-05-20 19:00:58 +0000
commit8598e290c3ef00108d1e59871f7c2665be44273a (patch)
treefa119d32e300177ff4e8a772f36c4ec1d524bb65 /lib/Transforms/Scalar/LoopStrengthReduce.cpp
parent1e3493b04a88fe931f73eebc175eb03c0d165e21 (diff)
downloadllvm-8598e290c3ef00108d1e59871f7c2665be44273a.tar.gz
llvm-8598e290c3ef00108d1e59871f7c2665be44273a.tar.bz2
llvm-8598e290c3ef00108d1e59871f7c2665be44273a.tar.xz
GlobalValue: Automatically reset visibility when setting local linkage
r208264 started asserting in `setLinkage()` and `setVisibility()` that visibility and linkage are compatible. There are a few places in clang where visibility is set first, and then linkage later, so the assert fires. In `setLinkage()`, it's clear what the visibility *should* be, so rather than updating all the call sites just automatically fix the visibility. The testcase for this is for *clang*, so it'll follow separately in cfe. PR19760 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopStrengthReduce.cpp')
0 files changed, 0 insertions, 0 deletions