diff options
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 837024f..3656ef0 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -1657,7 +1657,7 @@ bool SimplifyLibCalls::runOnFunction(Function &F) { // Ignore unknown calls. const char *CalleeName = Callee->getNameStart(); StringMap<LibCallOptimization*>::iterator OMI = - Optimizations.find(CalleeName, CalleeName+Callee->getNameLen()); + Optimizations.find(StringRef(CalleeName, Callee->getNameLen())); if (OMI == Optimizations.end()) continue; // Set the builder to the instruction after the call. |