HomePhabricator

[BitcodeReader] Fixed use after move warnings. NFCI.

Authored by xbolva00 on Sun, Nov 3, 10:45 AM.

Description

[BitcodeReader] Fixed use after move warnings. NFCI.

Details

Committed
xbolva00Sun, Nov 3, 10:45 AM
Parents
rG46f372a4aa5d: [BitcodeReader] Fixed null check after dereferencing warning. NFCI.
Branches
Unknown
Tags
Unknown

Event Timeline

RKSimon added inline comments.
/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
5912

@xbolva00 This might cause sanitizer warnings - you might have to replace this with

PendingTypeTests = std::vector<GlobalValue::GUID>();

etc.

xbolva00 marked an inline comment as done.Sun, Nov 3, 3:26 PM
xbolva00 added inline comments.
/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
5912

sanitizer-x86_64-linux-fast, sanitizer-x86_64-linux are green.

If I remember correctly, these vectors are not used later.