diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-07-16 17:56:07 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-07-16 17:56:07 +0000 |
commit | 71981ef040dd94438449aeca726cab5839d8ec3c (patch) | |
tree | 5aa92a3c28dd33ecfde4b7f8e2dfee1e54a53d47 /lib/Transforms | |
parent | 17c95a217d359a48a95b35730829e870fe8491eb (diff) |
Make SpecialCaseList match full strings, as documented, using anchors.
Differential Revision: http://llvm-reviews.chandlerc.com/D1149
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Utils/SpecialCaseList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SpecialCaseList.cpp b/lib/Transforms/Utils/SpecialCaseList.cpp index a747230def2..ef8a7ac75b6 100644 --- a/lib/Transforms/Utils/SpecialCaseList.cpp +++ b/lib/Transforms/Utils/SpecialCaseList.cpp @@ -99,7 +99,7 @@ void SpecialCaseList::init(const MemoryBuffer *MB) { // Add this regexp into the proper group by its prefix. if (!Regexps[Prefix][Category].empty()) Regexps[Prefix][Category] += "|"; - Regexps[Prefix][Category] += Regexp; + Regexps[Prefix][Category] += "^" + Regexp + "$"; } // Iterate through each of the prefixes, and create Regexs for them. |