[PATCH] Fix .seh_stackalloc 0

Reid Kleckner rnk at google.com
Mon Jun 30 17:38:54 PDT 2014


lgtm, I can commit this.

================
Comment at: lib/MC/MCStreamer.cpp:518-519
@@ -517,2 +517,4 @@
   EnsureValidW64UnwindInfo();
+  if (Size == 0)
+    report_fatal_error("Allocation size must be non-zero!");
   if (Size & 7)
----------------
MCStreamer needs a way to report errors....  :(

http://reviews.llvm.org/D4334






More information about the llvm-commits mailing list