Fix compile with GCC after r266002 (Add __atomic_* lowering to AtomicExpandPass)
authorJames Y Knight <jyknight@google.com>
Mon, 11 Apr 2016 22:52:42 +0000 (22:52 +0000)
committerJames Y Knight <jyknight@google.com>
Mon, 11 Apr 2016 22:52:42 +0000 (22:52 +0000)
commit00db547f97dd4b2d355b569cd6069f8d303fc560
tree7e66c2a0a70d387acf034d55ea38a200f27560f4
parent15c41b25c79d18bf3eaa5cf419c79884e26aa6e2
Fix compile with GCC after r266002 (Add __atomic_* lowering to AtomicExpandPass)

It doesn't like implicitly calling the ArrayRef constructor with a
returned array -- it appears to decays the returned value to a pointer,
first, before trying to make an ArrayRef out of it.

llvm-svn: 266011
llvm/lib/CodeGen/AtomicExpandPass.cpp