[llvm] r186198 - Fix the build with c++03.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 12 13:28:03 PDT 2013
Author: rafael
Date: Fri Jul 12 15:28:02 2013
New Revision: 186198
URL: http://llvm.org/viewvc/llvm-project?rev=186198&view=rev
Log:
Fix the build with c++03.
Modified:
llvm/trunk/tools/llvm-ar/llvm-ar.cpp
Modified: llvm/trunk/tools/llvm-ar/llvm-ar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ar/llvm-ar.cpp?rev=186198&r1=186197&r2=186198&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-ar/llvm-ar.cpp (original)
+++ llvm/trunk/tools/llvm-ar/llvm-ar.cpp Fri Jul 12 15:28:02 2013
@@ -379,10 +379,8 @@ namespace {
class NewArchiveIterator {
bool IsNewMember;
SmallString<16> MemberName;
- union {
- object::Archive::child_iterator OldI;
- std::vector<std::string>::const_iterator NewI;
- };
+ object::Archive::child_iterator OldI;
+ std::vector<std::string>::const_iterator NewI;
public:
NewArchiveIterator(object::Archive::child_iterator I, Twine Name);
More information about the llvm-commits
mailing list