aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-29 17:00:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-29 17:00:11 -0800
commiteea5cbe96fc5c5c2796c3ab3ea64f50fe350f75b (patch)
treec4ece3e4caebbe1239198ec57f16707420ae9e0a /lib/Transforms
parent3f282f31a179ecbe242bcc3b7f98c8fd261c492d (diff)
remove incorrect warning (ExpandI64 is a new pass of ours) and fix a compilation warning
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/NaCl/ExpandI64.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/NaCl/ExpandI64.cpp b/lib/Transforms/NaCl/ExpandI64.cpp
index b8b627e1d1..b2e33e6d68 100644
--- a/lib/Transforms/NaCl/ExpandI64.cpp
+++ b/lib/Transforms/NaCl/ExpandI64.cpp
@@ -171,11 +171,10 @@ void ExpandI64::ensureLegalFunc(Function *F) {
FunctionType *FT = F->getFunctionType();
int Num = FT->getNumParams();
- // XXX Emscripten TODO: Move this fix to PNacl upstream.
// Allocate small names on stack, large ones on heap.
// This is because on VS2010, arrays on the stack must
// be compile-time constant sized. (no C99 dynamic-length array support)
- const int StackSize = 256;
+ const size_t StackSize = 256;
char StackArray[StackSize];
char *AllocArray = 0;