Fix build with LLVM2.9/3.0
This commit is contained in:
2
opt.cpp
2
opt.cpp
@@ -1673,7 +1673,7 @@ lExtractVectorInts(llvm::Value *v, int64_t ret[], int *nElts) {
|
|||||||
ret[i] = cv->getElementAsInteger(i);
|
ret[i] = cv->getElementAsInteger(i);
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
llvm::ConstantVector *cv = llvm::dyn_cast<llvm::ConstantVector>(factor);
|
llvm::ConstantVector *cv = llvm::dyn_cast<llvm::ConstantVector>(v);
|
||||||
if (cv == NULL)
|
if (cv == NULL)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user