diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2013-07-11 06:41:14 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2013-07-11 06:41:14 +0000 |
| commit | 6cf88c985023bf76d6160a68bc75489465ac15b0 (patch) | |
| tree | b354153caa828c80fe97d037c70f8cf32d53a80d /lib/Bitcode/Reader/BitcodeReader.h | |
| parent | 838a7fb1a3bc514f062a44565f6680b7aeee6a87 (diff) | |
| download | llvm-6cf88c985023bf76d6160a68bc75489465ac15b0.tar.gz llvm-6cf88c985023bf76d6160a68bc75489465ac15b0.tar.bz2 llvm-6cf88c985023bf76d6160a68bc75489465ac15b0.tar.xz | |
Initialize AsmPrinter::MF in the constructor
MF is normally initialized in AsmPrinter::SetupMachineFunction, but if the file
contains only globals (no functions), then we need this to be initialized
because, when encountering an error, lowerConstant() references it.
This should fix the non-deterministic failures of
test/CodeGen/X86/nonconst-static-iv.ll, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions
