diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-07-01 04:40:10 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-07-01 04:40:10 +0000 |
commit | 0707fd082cd0aa4432f143d17a767e4368482e0c (patch) | |
tree | 712edff0cf6ef2951a21ad01182b3499dcc3ea88 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | cf02ef315fe650f026c3e2cd85c956fad6acd08f (diff) | |
download | llvm-0707fd082cd0aa4432f143d17a767e4368482e0c.zip llvm-0707fd082cd0aa4432f143d17a767e4368482e0c.tar.gz llvm-0707fd082cd0aa4432f143d17a767e4368482e0c.tar.bz2 |
-frewrite-includes: Rework how includes and modules are differentiated
The map of FileChange structs here was storing two disjoint types of
information:
1. A pointer to the Module that an #include directive implicitly
imported
2. A FileID and FileType for an included file. These would be left
uninitialized in the Module case.
This change splits these two kinds of information into their own maps,
which both simplifies how we access either and avoids the undefined
behaviour we were hitting due to the uninitialized fields in the
included file case.
Mostly NFC, but fixes some errors found by self-host with ubsan.
llvm-svn: 241140
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions