Skip to content

Commit a2d7659

Browse files
committed
Add llvm_unreachable to the end of a function when we're unable to process the Expr.
1 parent f534d57 commit a2d7659

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,8 @@ CodeGenFunction::emitCountedByMemberSize(const Expr *E, llvm::Value *EmittedE,
13921392
Builder.CreateAdd(FlexibleArrayMemberSize, OffsetDiff, "result"));
13931393
}
13941394
}
1395+
1396+
llvm_unreachable("unable to handle expression");
13951397
}
13961398

13971399
/// Returns a Value corresponding to the size of the given expression.

0 commit comments

Comments
 (0)