[llvm] 82042a2 - DWARFYAML::emitDebugSections - remove unnecessary cantFail(success) call. NFCI.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 06:07:28 PDT 2020


Author: Simon Pilgrim
Date: 2020-09-21T14:07:11+01:00
New Revision: 82042a2c9b2330cfb4621322474448567c52f7b6

URL: https://github.com/llvm/llvm-project/commit/82042a2c9b2330cfb4621322474448567c52f7b6
DIFF: https://github.com/llvm/llvm-project/commit/82042a2c9b2330cfb4621322474448567c52f7b6.diff

LOG: DWARFYAML::emitDebugSections - remove unnecessary cantFail(success) call. NFCI.

As mentioned on rG6bb912336804.

Added: 
    

Modified: 
    llvm/lib/ObjectYAML/DWARFEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ObjectYAML/DWARFEmitter.cpp b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
index eaf68dfdab3c..d545dd185427 100644
--- a/llvm/lib/ObjectYAML/DWARFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/DWARFEmitter.cpp
@@ -1033,8 +1033,6 @@ DWARFYAML::emitDebugSections(StringRef YAMLString, bool IsLittleEndian,
   if (YIn.error())
     return createStringError(YIn.error(), GeneratedDiag.getMessage());
 
-  cantFail(Error::success());
-
   StringMap<std::unique_ptr<MemoryBuffer>> DebugSections;
   Error Err = Error::success();
 


        


More information about the llvm-commits mailing list