Fix for PR 26378
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 12 Mar 2016 10:23:07 +0000 (10:23 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 12 Mar 2016 10:23:07 +0000 (10:23 +0000)
commitbd56e4e25a6342292eb3c6ba7b391ac5826a19d8
tree1933b48bfde1ca2892509baec5a90e6684842a00
parent777f96304e249b738f4f91edf1c4dd302ad862c8
Fix for PR 26378

This patch corresponds to review:
http://reviews.llvm.org/D17712

We were not clearing the TOC vector in PPCAsmPrinter when initializing it. This
caused duplicate definition asserts when the pass is reused on the module
(i.e. with -compile-twice or in JIT contexts).

llvm-svn: 263338
llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
llvm/test/CodeGen/PowerPC/pr26378.ll [new file with mode: 0644]