aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-09-18 23:16:30 +0000
committerReid Kleckner <rnk@google.com>2018-09-18 23:16:30 +0000
commit78381c63ae076f17092236b4e4c80df7fc222f15 (patch)
tree28203830d67069e7a9b8e0ad4c5021fc0617fa9e /clang/lib/Frontend/DependencyFile.cpp
parent3806c5361a2d8b9b1da8dd6c1346e9360c9c19f6 (diff)
downloadllvm-78381c63ae076f17092236b4e4c80df7fc222f15.zip
llvm-78381c63ae076f17092236b4e4c80df7fc222f15.tar.gz
llvm-78381c63ae076f17092236b4e4c80df7fc222f15.tar.bz2
[MS] Defer dllexport inline friend functions like other inline methods
This special case was added in r264841, but the code breaks our invariants by calling EmitTopLevelDecl without first creating a HandlingTopLevelDeclRAII scope. This fixes the PCH crash in https://crbug.com/884427. I was never able to make a satisfactory reduction, unfortunately. I'm not very worried about this regressing since this change makes the code simpler while passing the existing test that shows we do emit dllexported friend function definitions. Now we just defer their emission until the tag is fully complete, which is generally good. llvm-svn: 342516
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
0 files changed, 0 insertions, 0 deletions