Skip to content

Commit e8dd5a8

Browse files
committed
Addressed review comments
Signed-off-by: Sergey Dmitriev <[email protected]>
1 parent f55da9a commit e8dd5a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Driver/Driver.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6270,9 +6270,9 @@ InputInfo Driver::BuildJobsForActionNoCache(
62706270
// returned for the current depending action.
62716271
std::pair<const Action *, std::string> ActionTC = {
62726272
A, GetTriplePlusArchString(TC, BoundArch, TargetDeviceOffloadKind)};
6273-
assert(CachedResults.find(ActionTC) != CachedResults.end() &&
6274-
"Result does not exist??");
6275-
Result = CachedResults[ActionTC];
6273+
auto It = CachedResults.find(ActionTC);
6274+
assert(It != CachedResults.end() && "Result does not exist??");
6275+
Result = It->second;
62766276
} else if (JA->getType() == types::TY_Nothing)
62776277
Result = InputInfo(A, BaseInput);
62786278
else {

0 commit comments

Comments
 (0)