aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-14 18:16:09 +0000
committerChris Lattner <sabre@nondot.org>2011-02-14 18:16:09 +0000
commite69b09955acbde87470eea8bc99b580195569dc0 (patch)
treeab32e281d64d91d5bc0de3d67aedec4148bee3cc /lib/CodeGen/CGExprConstant.cpp
parent43dee220252ef0b42c5f8a3bb1eca97f84f2565f (diff)
revert my ConstantVector patch, it seems to have made the llvm-gcc
builders unhappy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp
index d4d9c92838..c569b37b94 100644
--- a/lib/CodeGen/CGExprConstant.cpp
+++ b/lib/CodeGen/CGExprConstant.cpp
@@ -914,7 +914,7 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E,
else
Inits.push_back(llvm::ConstantFP::get(VMContext, Elt.getFloat()));
}
- return llvm::ConstantVector::get(Inits);
+ return llvm::ConstantVector::get(&Inits[0], Inits.size());
}
}
}