@@ -1399,8 +1399,7 @@ lExtractFirstVectorElement(llvm::Value *v,
|
|||||||
// First, handle various constant types; do the extraction manually, as
|
// First, handle various constant types; do the extraction manually, as
|
||||||
// appropriate.
|
// appropriate.
|
||||||
if (llvm::isa<llvm::ConstantAggregateZero>(v) == true) {
|
if (llvm::isa<llvm::ConstantAggregateZero>(v) == true) {
|
||||||
Assert(vt->getElementType()->isIntegerTy());
|
return llvm::Constant::getNullValue(vt->getElementType());
|
||||||
return llvm::ConstantInt::get(vt->getElementType(), 0);
|
|
||||||
}
|
}
|
||||||
if (llvm::ConstantVector *cv = llvm::dyn_cast<llvm::ConstantVector>(v)) {
|
if (llvm::ConstantVector *cv = llvm::dyn_cast<llvm::ConstantVector>(v)) {
|
||||||
#ifndef LLVM_3_0
|
#ifndef LLVM_3_0
|
||||||
|
|||||||
Reference in New Issue
Block a user