diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-05-27 22:35:00 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-05-27 22:35:00 +0000 |
commit | f0e0cca0c761a9a8593873c67d3d081fa0d07ebe (patch) | |
tree | 3a661d5814fb7f5d8f4aee67888697fb254fb79d /llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp | |
parent | de5ff26865e996e1154887440656e4981d56aebe (diff) | |
download | bcm5719-llvm-f0e0cca0c761a9a8593873c67d3d081fa0d07ebe.tar.gz bcm5719-llvm-f0e0cca0c761a9a8593873c67d3d081fa0d07ebe.zip |
Don't pre-populate the set of keys in the map with variable locations history.
Current implementation of calculateDbgValueHistory already creates the
keys in the expected order (user variables are listed in order of appearance),
and should do so later by contract.
No functionality change.
llvm-svn: 209690
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp b/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp index c9bf1ecf907..450d1541384 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DbgValueHistoryCalculator.cpp @@ -144,6 +144,7 @@ void calculateDbgValueHistory(const MachineFunction *MF, continue; } + assert(MI.getNumOperands() > 1 && "Invalid DBG_VALUE instruction!"); const MDNode *Var = MI.getDebugVariable(); auto &History = Result[Var]; |