X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FVMCore%2FValueSymbolTable.cpp;h=525f3f04d010ee617749cae3b06ef7b175d8a908;hb=eb75364020aad1af558b756e4a5e2eeea91be36f;hp=eae3bf28003fc0aad2b30e06640a496972ddc158;hpb=b95c2fd2700a92a7b857ebd1ecf6c7d561d676d2;p=oota-llvm.git diff --git a/lib/VMCore/ValueSymbolTable.cpp b/lib/VMCore/ValueSymbolTable.cpp index eae3bf28003..525f3f04d01 100644 --- a/lib/VMCore/ValueSymbolTable.cpp +++ b/lib/VMCore/ValueSymbolTable.cpp @@ -43,7 +43,7 @@ void ValueSymbolTable::reinsertValue(Value* V) { } // Otherwise, there is a naming conflict. Rename this value. - SmallString<128> UniqueName(V->getNameStart(), V->getNameEnd()); + SmallString<128> UniqueName(V->getName().begin(), V->getName().end()); // The name is too already used, just free it so we can allocate a new name. V->Name->Destroy();