1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Fixed compilation problem on Windows (initialization of non-aggregate type).

After commit 217131.

llvm-svn: 217134
This commit is contained in:
Elena Demikhovsky 2014-09-04 07:20:39 +00:00
parent ad00c803d8
commit 234d9b228b

View File

@ -24,10 +24,6 @@ enum IntrinsicType {
};
struct IntrinsicData {
IntrinsicData(unsigned IId, IntrinsicType IType, unsigned IOpc0, unsigned IOpc1)
:Id(IId), Type(IType), Opc0(IOpc0), Opc1(IOpc1) {}
IntrinsicData(unsigned IId)
:Id(IId), Type(INTR_NO_TYPE) {}
unsigned Id;
IntrinsicType Type;
@ -111,7 +107,7 @@ static const IntrinsicData IntrinsicsWithChain[] = {
*/
static const IntrinsicData* getIntrinsicWithChain(unsigned IntNo) {
IntrinsicData IntrinsicToFind(IntNo);
IntrinsicData IntrinsicToFind = {IntNo, INTR_NO_TYPE, 0, 0 };
const IntrinsicData *Data = std::lower_bound(std::begin(IntrinsicsWithChain),
std::end(IntrinsicsWithChain),
IntrinsicToFind);
@ -241,7 +237,7 @@ static const IntrinsicData IntrinsicsWithoutChain[] = {
* Return nullptr if intrinsic is not defined in the table.
*/
static const IntrinsicData* getIntrinsicWithoutChain(unsigned IntNo) {
IntrinsicData IntrinsicToFind(IntNo);
IntrinsicData IntrinsicToFind = { IntNo, INTR_NO_TYPE, 0, 0 };
const IntrinsicData *Data = std::lower_bound(std::begin(IntrinsicsWithoutChain),
std::end(IntrinsicsWithoutChain),
IntrinsicToFind);