Skip to content

Commit 9ce1dc4

Browse files
committed
[clang][bytecode][NFC] Use Pointer::initializeAllElements() in Program
We just initialized the entire string, so use this function instead.
1 parent acf9611 commit 9ce1dc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/Program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ unsigned Program::createGlobalString(const StringLiteral *S, const Expr *Base) {
101101
}
102102
}
103103
}
104-
Ptr.initialize();
104+
Ptr.initializeAllElements();
105105

106106
return GlobalIndex;
107107
}

0 commit comments

Comments
 (0)