[PATCH] D20768: [MC] Return early when .fill size is negative

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sat May 28 01:26:40 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL271107: [MC] Return early when .fill size is negative (authored by phosek).

Changed prior to commit:
  http://reviews.llvm.org/D20768?vs=58883&id=58885#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D20768

Files:
  llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Index: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
===================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp
@@ -2801,7 +2801,7 @@
 
   if (FillSize < 0) {
     Warning(SizeLoc, "'.fill' directive with negative size has no effect");
-    NumValues = MCConstantExpr::create(0, getStreamer().getContext());
+    return false;
   }
   if (FillSize > 8) {
     Warning(SizeLoc, "'.fill' directive with size greater than 8 has been truncated to 8");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20768.58885.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160528/0f084ac7/attachment.bin>


More information about the llvm-commits mailing list