Skip to content

Commit fa016a1

Browse files
committed
add dependent check for argument
1 parent d4ea868 commit fa016a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2211,6 +2211,8 @@ static bool BuiltinBswapg(Sema &S, CallExpr *TheCall) {
22112211

22122212
Expr *Arg = ArgRes.get();
22132213
TheCall->setArg(0, Arg);
2214+
if (Arg->isTypeDependent())
2215+
return false;
22142216

22152217
QualType ArgTy = Arg->getType();
22162218

0 commit comments

Comments
 (0)