[PATCH] D12539: Fix SEGV in InlineAsm::ConstraintInfo::Parse.

Karl Schimpf via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 08:42:50 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL246774: Fix SEGV in InlineAsm::ConstraintInfo::Parse. (authored by kschimpf).

Changed prior to commit:
  http://reviews.llvm.org/D12539?vs=33731&id=33946#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D12539

Files:
  llvm/trunk/lib/IR/InlineAsm.cpp
  llvm/trunk/test/Assembler/invalid-inline-constraint.ll

Index: llvm/trunk/lib/IR/InlineAsm.cpp
===================================================================
--- llvm/trunk/lib/IR/InlineAsm.cpp
+++ llvm/trunk/lib/IR/InlineAsm.cpp
@@ -159,7 +159,8 @@
       // If Operand N already has a matching input, reject this.  An output
       // can't be constrained to the same value as multiple inputs.
       if (isMultipleAlternative) {
-        if (multipleAlternativeIndex >= ConstraintsSoFar[N].multipleAlternatives.size())
+        if (multipleAlternativeIndex >=
+            ConstraintsSoFar[N].multipleAlternatives.size())
           return true;
         InlineAsm::SubConstraintInfo &scInfo =
           ConstraintsSoFar[N].multipleAlternatives[multipleAlternativeIndex];


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12539.33946.patch
Type: text/x-patch
Size: 725 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150903/1c054d49/attachment.bin>


More information about the llvm-commits mailing list