Fix getOrInsertGlobal dropping the address space.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 30 Sep 2013 21:23:03 +0000 (21:23 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 30 Sep 2013 21:23:03 +0000 (21:23 +0000)
commit2ebcd57e6adf2dc951eb7ad5f42952961f1a60c9
treebb81d00fa401a9d621e5d022c3b2f8ed1c0b37f2
parent3ca8f2e5d5d8cb0551b42ef89deaaadd9c4cb067
Fix getOrInsertGlobal dropping the address space.

Currently it will insert an illegal bitcast.
Arguably, the address space argument should be
added for the creation case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191702 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Module.cpp
unittests/IR/ValueTest.cpp