summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/DebugLoc.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-04-06 06:49:59 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-04-06 06:49:59 +0000
commitd4b3d29c50debd26000510b8401ed263812dba09 (patch)
treede1808cad93b05615953fc5b0b58bee3464a9df9 /llvm/lib/VMCore/DebugLoc.cpp
parentb1915d62a7d7b8dd1520156046160df1a047dc08 (diff)
downloadbcm5719-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.cpp2
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() {
OpenPOWER on IntegriCloud