[llvm] r217134 - Fixed compilation problem on Windows (initialization of non-aggregate type).
Elena Demikhovsky
elena.demikhovsky at intel.com
Thu Sep 4 00:20:39 PDT 2014
Author: delena
Date: Thu Sep 4 02:20:39 2014
New Revision: 217134
URL: http://llvm.org/viewvc/llvm-project?rev=217134&view=rev
Log:
Fixed compilation problem on Windows (initialization of non-aggregate type).
After commit 217131.
Modified:
llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h
Modified: llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h?rev=217134&r1=217133&r2=217134&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h (original)
+++ llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h Thu Sep 4 02:20:39 2014
@@ -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 IntrinsicsWit
*/
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 IntrinsicsWi
* 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);
More information about the llvm-commits
mailing list