X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FUtils%2FSpecialCaseList.cpp;h=ef8a7ac75b68090728a1d582af390d25609eb10c;hp=a747230def2ae07502908b7a36c1b8222e0a3e73;hb=71981ef040dd94438449aeca726cab5839d8ec3c;hpb=17c95a217d359a48a95b35730829e870fe8491eb 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.