Hopefully fix android i386 build after r242554.

That platform has alignof(uint64_t) == 4, but, since LLVM_ALIGNAS(...)
cannot take anything but literal integers due to MSVC limitations, the
literal '8' used there didn't match. Switch ScopeStackAlignment to
just use 8, as well.

llvm-svn: 242578
This commit is contained in:
James Y Knight 2015-07-17 21:58:11 +00:00
parent 3b3380ec44
commit 8041e59370
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ enum CleanupKind : unsigned {
/// and catch blocks.
class EHScopeStack {
public:
enum { ScopeStackAlignment = llvm::AlignOf<uint64_t>::Alignment };
/* Should switch to alignof(uint64_t) instead of 8, when EHCleanupScope can */
enum { ScopeStackAlignment = 8 };
/// A saved depth on the scope stack. This is necessary because
/// pushing scopes onto the stack invalidates iterators.