diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-04-06 06:49:59 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-04-06 06:49:59 +0000 |
commit | 4841121580df86b327013d1fab2a9339be487bce (patch) | |
tree | c9a467eb2f1d1a56bebaf2e611c002c1395b7619 /lib/VMCore | |
parent | 49123fd58c52833dd40702c30dd05e2c40156f33 (diff) | |
download | external_llvm-4841121580df86b327013d1fab2a9339be487bce.zip external_llvm-4841121580df86b327013d1fab2a9339be487bce.tar.gz external_llvm-4841121580df86b327013d1fab2a9339be487bce.tar.bz2 |
Add an empty key for DebugLoc so that you can store an empty DebugLoc in a
DenseMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128994 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/DebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/DebugLoc.cpp b/lib/VMCore/DebugLoc.cpp index cb077cb..3569162 100644 --- a/lib/VMCore/DebugLoc.cpp +++ b/lib/VMCore/DebugLoc.cpp @@ -133,7 +133,7 @@ DebugLoc DebugLoc::getFromDILocation(MDNode *N) { //===----------------------------------------------------------------------===// DebugLoc DenseMapInfo<DebugLoc>::getEmptyKey() { - return DebugLoc(); + return DebugLoc::getEmptyKey(); } DebugLoc DenseMapInfo<DebugLoc>::getTombstoneKey() { |