]> granicus.if.org Git - clang/commit
Revert "[Sema] Make getCurFunction() return null outside function parsing"
authorReid Kleckner <rnk@google.com>
Thu, 8 Mar 2018 01:12:22 +0000 (01:12 +0000)
committerReid Kleckner <rnk@google.com>
Thu, 8 Mar 2018 01:12:22 +0000 (01:12 +0000)
commit61d936f6b2dbff387b50c70bbc0c01110176bfd3
tree3b15e67411b55d986e35337f7db70da4899d5298
parent9cc56bc373a32a2def1e752b33dd95b1200a994a
Revert "[Sema] Make getCurFunction() return null outside function parsing"

This reverts r326965. It seems to have caused repeating test failures in
clang/test/Sema/diagnose_if.c on some buildbots.

I cannot reproduce the problem, and it's not immediately obvious what
the problem is, so let's revert to green.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326974 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/Sema/AnalysisBasedWarnings.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaStmtAsm.cpp