Don't treat 0 as a special value for int attributes.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Sep 2014 23:24:31 +0000 (23:24 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 3 Sep 2014 23:24:31 +0000 (23:24 +0000)
commit017c14e722fb351bf9dcd9139992403dcabebe86
tree0067e1de1118eb4cb8f29935669122ca837cf2ec
parentc9b2548b23eb28fdab2aef977feace10c2b3dbb3
Don't treat 0 as a special value for int attributes.

Split the get() to not use a default value. This way
attributes can be added that have 0 as a legitimate value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217107 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Attributes.h
lib/IR/Attributes.cpp