Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 70a513f

Browse files
committed
Merge pull request #61 from juj/work_around_vs2013_bug
VS2013 fix for getRelocData.
2 parents 04a42b3 + 5368f68 commit 70a513f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Transforms/NaCl/FlattenGlobals.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,21 @@ namespace {
8181
class FlattenedGlobal;
8282
typedef std::vector<FlattenedGlobal*> FlattenedGlobalsVectorType;
8383

84+
#ifdef _MSC_VER
85+
// Work around Visual Studio bug https://connect.microsoft.com/VisualStudio/feedback/details/1085387
86+
}
87+
#endif
88+
8489
// Returns the corresponding relocation, for the given user handle.
8590
static Constant *getRelocUse(RelocUserType *RelocUser) {
8691
return cast<Constant>(RelocUser->getReturnValue());
8792
}
8893

94+
#ifdef _MSC_VER
95+
// Work around Visual Studio bug https://connect.microsoft.com/VisualStudio/feedback/details/1085387
96+
namespace {
97+
#endif
98+
8999
// The state associated with flattening globals of a module.
90100
struct FlattenGlobalsState {
91101
/// The module being flattened.

0 commit comments

Comments
 (0)