aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-03-12 21:09:20 +0000
committerSteve Naroff <snaroff@apple.com>2008-03-12 21:09:20 +0000
commit39bbd9f5918950436821585afc6244b1fe2c7295 (patch)
tree2e6fe31c6a90839ea03a82fb475031fbef8a7e78 /lib/CodeGen/ModuleBuilder.cpp
parent199e1a071d8a1fdfb18dabad3c751bdc8b2f4487 (diff)
Avoid using the "unnamed struct field" extension (enabled with -fms-extensions). This feature/extension silently does the wrong thing in g++. As far as I can tell, g++ simply throws the field away entirely (note that it works fine with gcc). Since I am now always casting the object (for other reasons), accessing protected/public fields simply requires the cast refer to the defining class. This solution is simpler all around (thanks to Chris for suggesting it).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions