Skip to content

Commit ffdd55a

Browse files
committed
Correct a Most Vexing Parse in -asserts Builds
This thing looks like a function prototype otherwise.
1 parent 5e9c24e commit ffdd55a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Transforms/TempRValueElimination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ void TempRValueOptPass::run() {
736736
// Delete the copies and any unused address operands.
737737
// The same copy may have been added multiple times.
738738
sortUnique(deadCopies);
739-
InstModCallbacks callbacks(
739+
InstModCallbacks callbacks{
740740
#ifndef NDEBUG
741741
// With asserts, we include this assert. Otherwise, we use the default
742742
// impl for perf.
@@ -747,7 +747,7 @@ void TempRValueOptPass::run() {
747747
instToKill->eraseFromParent();
748748
}
749749
#endif
750-
);
750+
};
751751

752752
for (auto *deadCopy : deadCopies) {
753753
assert(changed);

0 commit comments

Comments
 (0)