Skip to content

Commit d231713

Browse files
author
Amirhossein Pashaeehir
committed
Move the definition to usage
1 parent 1981374 commit d231713

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/tools/llvm-mc/llvm-mc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,10 @@ int main(int argc, char **argv) {
526526
std::unique_ptr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo());
527527
assert(MCII && "Unable to create instruction info!");
528528

529-
auto FFA = std::make_unique<CFIFunctionFrameAnalyzer>(Ctx, *MCII);
530-
531529
std::unique_ptr<MCInstPrinter> IP;
532530
if (ValidateCFI) {
533531
assert(FileType == OFT_Null);
532+
auto FFA = std::make_unique<CFIFunctionFrameAnalyzer>(Ctx, *MCII);
534533
auto FFS = std::make_unique<CFIFunctionFrameStreamer>(Ctx, std::move(FFA));
535534
TheTarget->createNullTargetStreamer(*FFS);
536535
Str = std::move(FFS);

0 commit comments

Comments
 (0)