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 | d4b3d29c50debd26000510b8401ed263812dba09 (patch) | |
tree | de1808cad93b05615953fc5b0b58bee3464a9df9 /llvm/lib/VMCore/DebugLoc.cpp | |
parent | b1915d62a7d7b8dd1520156046160df1a047dc08 (diff) | |
download | bcm5719-llvm-d4b3d29c50debd26000510b8401ed263812dba09.tar.gz bcm5719-llvm-d4b3d29c50debd26000510b8401ed263812dba09.zip |
Add an empty key for DebugLoc so that you can store an empty DebugLoc in a
DenseMap.
llvm-svn: 128994
Diffstat (limited to 'llvm/lib/VMCore/DebugLoc.cpp')
-rw-r--r-- | llvm/lib/VMCore/DebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/DebugLoc.cpp b/llvm/lib/VMCore/DebugLoc.cpp index cb077cb4374..35691627f49 100644 --- a/llvm/lib/VMCore/DebugLoc.cpp +++ b/llvm/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() { |