summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-01-20 20:44:50 +0000
committerReid Kleckner <rnk@google.com>2017-01-20 20:44:50 +0000
commit25019ca828977c478cb06cb8a6e8c4e240adfef4 (patch)
treef99b2e43f972412c33fb9f88b51af1bbcb15e274 /clang/lib/CodeGen/CodeGenModule.cpp
parent8c495e20bd3edefa9fdf5ba96d74b1ab1d355d15 (diff)
downloadbcm5719-llvm-25019ca828977c478cb06cb8a6e8c4e240adfef4.tar.gz
bcm5719-llvm-25019ca828977c478cb06cb8a6e8c4e240adfef4.zip
Revert "Don't inline dllimport functions referencing non-imported methods"
This reverts commit r292522. It appears to be causing crashes in builds using dllimport. llvm-svn: 292643
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 67ea1bea49a..c9d9a35fb8a 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1751,11 +1751,6 @@ namespace {
SafeToInline = E->getConstructor()->hasAttr<DLLImportAttr>();
return SafeToInline;
}
- bool VisitCXXMemberCallExpr(CXXMemberCallExpr *E) {
- CXXMethodDecl *M = E->getMethodDecl();
- SafeToInline = M->hasAttr<DLLImportAttr>();
- return SafeToInline;
- }
bool VisitCXXDeleteExpr(CXXDeleteExpr *E) {
SafeToInline = E->getOperatorDelete()->hasAttr<DLLImportAttr>();
return SafeToInline;
OpenPOWER on IntegriCloud