We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f55da9a commit e8dd5a8Copy full SHA for e8dd5a8
clang/lib/Driver/Driver.cpp
@@ -6270,9 +6270,9 @@ InputInfo Driver::BuildJobsForActionNoCache(
6270
// returned for the current depending action.
6271
std::pair<const Action *, std::string> ActionTC = {
6272
A, GetTriplePlusArchString(TC, BoundArch, TargetDeviceOffloadKind)};
6273
- assert(CachedResults.find(ActionTC) != CachedResults.end() &&
6274
- "Result does not exist??");
6275
- Result = CachedResults[ActionTC];
+ auto It = CachedResults.find(ActionTC);
+ assert(It != CachedResults.end() && "Result does not exist??");
+ Result = It->second;
6276
} else if (JA->getType() == types::TY_Nothing)
6277
Result = InputInfo(A, BaseInput);
6278
else {
0 commit comments