From d4b3d29c50debd26000510b8401ed263812dba09 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Wed, 6 Apr 2011 06:49:59 +0000 Subject: Add an empty key for DebugLoc so that you can store an empty DebugLoc in a DenseMap. llvm-svn: 128994 --- llvm/lib/VMCore/DebugLoc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/VMCore/DebugLoc.cpp') 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::getEmptyKey() { - return DebugLoc(); + return DebugLoc::getEmptyKey(); } DebugLoc DenseMapInfo::getTombstoneKey() { -- cgit v1.2.3