Mercurial > hg > CbC > CbC_llvm
diff lib/Transforms/Scalar/LowerAtomic.cpp @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | 3a76565eade5 |
line wrap: on
line diff
--- a/lib/Transforms/Scalar/LowerAtomic.cpp Fri Nov 25 19:14:25 2016 +0900 +++ b/lib/Transforms/Scalar/LowerAtomic.cpp Fri Oct 27 17:07:41 2017 +0900 @@ -155,8 +155,7 @@ } bool runOnFunction(Function &F) override { - if (skipFunction(F)) - return false; + // Don't skip optnone functions; atomics still need to be lowered. FunctionAnalysisManager DummyFAM; auto PA = Impl.run(F, DummyFAM); return !PA.areAllPreserved();