summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/SpecialCaseList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Utils/SpecialCaseList.cpp')
-rw-r--r--lib/Transforms/Utils/SpecialCaseList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SpecialCaseList.cpp b/lib/Transforms/Utils/SpecialCaseList.cpp
index a747230def..ef8a7ac75b 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.