[PATCH] D14467: [MS] Fix for bug 25013 - #pragma vtordisp is unknown inside functions.
Denis Zobnin via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 15:25:07 PST 2015
d.zobnin.bugzilla created this revision.
d.zobnin.bugzilla added a reviewer: rnk.
d.zobnin.bugzilla added a subscriber: cfe-commits.
This patch adds support of #pragma vtordisp inside functions in attempt to improve compatibility. Microsoft compiler appears to save the stack of vtordisp modes on entry of struct methods' bodies and restore it on exit (method-local vtordisp).
http://reviews.llvm.org/D14467
Files:
include/clang/Sema/Sema.h
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseStmt.cpp
test/Layout/ms-vtordisp-local.cpp
test/SemaCXX/pragma-vtordisp.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14467.39602.patch
Type: text/x-patch
Size: 11471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151106/0a6b3b03/attachment.bin>
More information about the cfe-commits
mailing list