Skip to content

Commit bf9eef9

Browse files
committed
Gnu: Replace with a GCCInstallation.isValid() check with assert
1 parent 711a473 commit bf9eef9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Driver/ToolChains/Gnu.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,9 +2964,7 @@ bool Generic_GCC::addLibStdCXXIncludePaths(Twine IncludeDir, StringRef Triple,
29642964
bool Generic_GCC::addGCCLibStdCxxIncludePaths(
29652965
const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args,
29662966
StringRef DebianMultiarch) const {
2967-
// Use GCCInstallation to know where libstdc++ headers are installed.
2968-
if (!GCCInstallation.isValid())
2969-
return false;
2967+
assert(GCCInstallation.isValid());
29702968

29712969
// By default, look for the C++ headers in an include directory adjacent to
29722970
// the lib directory of the GCC installation. Note that this is expect to be

0 commit comments

Comments
 (0)