Skip to content

Commit 0146c05

Browse files
authored
Update SemaInit.cpp
1 parent 98b737f commit 0146c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaInit.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6514,8 +6514,8 @@ void InitializationSequence::InitializeFrom(Sema &S,
65146514
// to convert between these specific types under these conditions.
65156515
if (isa<PointerType>(SourceType) && !isa<PointerType>(DestType) &&
65166516
SourceType.getAsString() != DestType.getAsString() &&
6517-
SourceType.getAsString().find("volatile") != std::string::npos &&
6518-
DestType.getAsString().find("volatile") == std::string::npos)
6517+
SourceType.getAsString().find(" volatile ") != std::string::npos &&
6518+
DestType.getAsString().find(" volatile ") == std::string::npos)
65196519
IsCStyleCast = true;
65206520

65216521
// - Otherwise, the initial value of the object being initialized is the

0 commit comments

Comments
 (0)