commit | a9203109f4ac95aa7e9624f2838e3d89623ec902 | [log] [tgz] |
---|---|---|
author | Jay Foad <jay.foad@gmail.com> | Mon Jul 25 09:48:08 2011 +0000 |
committer | Jay Foad <jay.foad@gmail.com> | Mon Jul 25 09:48:08 2011 +0000 |
tree | 49efd5cde506bb3127e6c0b4a4b8f504d5466dcf | |
parent | b7fbcc9696e38ca26c7eb67077c04b51c846c9cb [diff] [blame] |
Convert GetElementPtrInst to use ArrayRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135904 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Instrumentation/PathProfiling.cpp b/lib/Transforms/Instrumentation/PathProfiling.cpp index c6147fa..ee3cff7 100644 --- a/lib/Transforms/Instrumentation/PathProfiling.cpp +++ b/lib/Transforms/Instrumentation/PathProfiling.cpp
@@ -1029,8 +1029,7 @@ gepIndices[1] = incValue; GetElementPtrInst* pcPointer = - GetElementPtrInst::Create(dag->getCounterArray(), - gepIndices.begin(), gepIndices.end(), + GetElementPtrInst::Create(dag->getCounterArray(), gepIndices, "counterInc", insertPoint); // Load from the array - call it oldPC