diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/IR/Value.cpp | 2 | ||||
-rw-r--r-- | lib/Support/StringPool.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp index f392512c3e..463024a28c 100644 --- a/lib/IR/Value.cpp +++ b/lib/IR/Value.cpp @@ -213,7 +213,7 @@ void Value::setName(const Twine &NewName) { // then reallocated. // Create the new name. - Name = ValueName::Create(NameRef.begin(), NameRef.end()); + Name = ValueName::Create(NameRef); Name->setValue(this); return; } diff --git a/lib/Support/StringPool.cpp b/lib/Support/StringPool.cpp index ff607cf8c4..76faabc92b 100644 --- a/lib/Support/StringPool.cpp +++ b/lib/Support/StringPool.cpp @@ -27,7 +27,7 @@ PooledStringPtr StringPool::intern(StringRef Key) { if (I != InternTable.end()) return PooledStringPtr(&*I); - entry_t *S = entry_t::Create(Key.begin(), Key.end()); + entry_t *S = entry_t::Create(Key); S->getValue().Pool = this; InternTable.insert(S); |