summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorYitzhak Mandelbaum <yitzhakm@google.com>2019-06-26 15:04:33 +0000
committerYitzhak Mandelbaum <yitzhakm@google.com>2019-06-26 15:04:33 +0000
commit83b1580e1b14fc719e10c5ac885a4c993be3fff6 (patch)
treef4e88bd3a5ddb99f88792d4da3b1bbc861b2e2e2 /llvm/lib/CodeGen/MachineFunction.cpp
parent435ee9fb1f86a8f3798c8953b5d1a0b29849fd4e (diff)
downloadbcm5719-llvm-83b1580e1b14fc719e10c5ac885a4c993be3fff6.tar.gz
bcm5719-llvm-83b1580e1b14fc719e10c5ac885a4c993be3fff6.zip
[clang-tidy] Fix ClangTidyTest to initialize context before checks.
Summary: Currently, `clang::tidy::test::runCheckOnCode()` constructs the check instances *before* initializing the ClangTidyContext. This ordering causes problems when the check's constructor accesses the context, for example, through `getLangOpts()`. This revision moves the construction to after the context initialization, which follows the pattern used in the clang tidy tool itself. Reviewers: gribozavr Subscribers: xazax.hun, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D63784 llvm-svn: 364435
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud