summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Constants.cpp
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-05-21 22:48:54 +0000
committerPete Cooper <peter_cooper@apple.com>2015-05-21 22:48:54 +0000
commiteb31b68cefd5ab38ba61ac11c73108a5e344272d (patch)
tree470f094a7a201ada4b838441805112b3d74c20e9 /llvm/lib/IR/Constants.cpp
parent9afad0e954d99193075ca305eabfb6a5227f1a1e (diff)
downloadbcm5719-llvm-eb31b68cefd5ab38ba61ac11c73108a5e344272d.tar.gz
bcm5719-llvm-eb31b68cefd5ab38ba61ac11c73108a5e344272d.zip
Use Op<0> accessor instead of OperandList for Instructions. NFC
This is consistent with other uses of the operand list. I'm planning a future commit where this will actually matter. llvm-svn: 237967
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r--llvm/lib/IR/Constants.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp
index d35372a2f8e..fb83ebbbd87 100644
--- a/llvm/lib/IR/Constants.cpp
+++ b/llvm/lib/IR/Constants.cpp
@@ -2388,7 +2388,7 @@ GetElementPtrConstantExpr::GetElementPtrConstantExpr(
(IdxList.size() + 1),
IdxList.size() + 1),
SrcElementTy(SrcElementTy) {
- OperandList[0] = C;
+ Op<0>() = C;
for (unsigned i = 0, E = IdxList.size(); i != E; ++i)
OperandList[i+1] = IdxList[i];
}
OpenPOWER on IntegriCloud