We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b737f commit 0146c05Copy full SHA for 0146c05
clang/lib/Sema/SemaInit.cpp
@@ -6514,8 +6514,8 @@ void InitializationSequence::InitializeFrom(Sema &S,
6514
// to convert between these specific types under these conditions.
6515
if (isa<PointerType>(SourceType) && !isa<PointerType>(DestType) &&
6516
SourceType.getAsString() != DestType.getAsString() &&
6517
- SourceType.getAsString().find("volatile") != std::string::npos &&
6518
- DestType.getAsString().find("volatile") == std::string::npos)
+ SourceType.getAsString().find(" volatile ") != std::string::npos &&
+ DestType.getAsString().find(" volatile ") == std::string::npos)
6519
IsCStyleCast = true;
6520
6521
// - Otherwise, the initial value of the object being initialized is the
0 commit comments