[PATCH] D61562: [LLParser] Remove unnecessary error check making sure NUW/NSW flags aren't set on a non-integer operation.

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 5 10:20:17 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL359987: [LLParser] Remove unnecessary error check making sure NUW/NSW flags aren't set… (authored by ctopper, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D61562?vs=198163&id=198185#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61562/new/

https://reviews.llvm.org/D61562

Files:
  llvm/trunk/lib/AsmParser/LLParser.cpp


Index: llvm/trunk/lib/AsmParser/LLParser.cpp
===================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp
+++ llvm/trunk/lib/AsmParser/LLParser.cpp
@@ -3393,12 +3393,6 @@
       return true;
     if (Val0->getType() != Val1->getType())
       return Error(ID.Loc, "operands of constexpr must have same type");
-    if (!Val0->getType()->isIntOrIntVectorTy()) {
-      if (NUW)
-        return Error(ModifierLoc, "nuw only applies to integer operations");
-      if (NSW)
-        return Error(ModifierLoc, "nsw only applies to integer operations");
-    }
     // Check that the type is valid for the operator.
     switch (Opc) {
     case Instruction::Add:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61562.198185.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190505/d36dc1ff/attachment.bin>


More information about the llvm-commits mailing list