[LLVMdev] RegisterCoalescing pass crashes with ImplicitDef registers

Vincent Lejeune vljn at ovi.com
Sun Oct 21 07:40:20 PDT 2012


It works, thank !

>________________________________
> De : Jakob Stoklund Olesen <stoklund at 2pi.dk>
>À : Vincent Lejeune <vljn at ovi.com> 
>Cc : "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> 
>Envoyé le : Dimanche 21 octobre 2012 2h48
>Objet : Re: [LLVMdev] RegisterCoalescing pass crashes with ImplicitDef registers
> 
>
>
>
>On Oct 20, 2012, at 3:37 PM, Vincent Lejeune <vljn at ovi.com> wrote:
>
>#5  0x00000000010c8e83 in (anonymous namespace)::JoinVals::getAssignments (this=0x7fffffffd230) at RegisterCoalescer.cpp:1305
>>
>
>Does this fix it?
>
>
>diff --git a/lib/CodeGen/RegisterCoalescer.cpp b/lib/CodeGen/RegisterCoalescer.cpp
>index ba6b456..2ca67d6 100644
>--- a/lib/CodeGen/RegisterCoalescer.cpp
>+++ b/lib/CodeGen/RegisterCoalescer.cpp
>@@ -1302,7 +1302,7 @@ public:
>                    SmallVectorImpl<unsigned> &ShrinkRegs);
> 
>   /// Get the value assignments suitable for passing to LiveInterval::join.
>-  const int *getAssignments() const { return &Assignments[0]; }
>+  const int *getAssignments() const { return Assignments.data(); }
> };
> } // end anonymous namespace
> 
>
>
>
>




More information about the llvm-dev mailing list