]> granicus.if.org Git - llvm/commitdiff
[ARM] Follow-up to r337709.
authorMatt Morehouse <mascasa@google.com>
Mon, 23 Jul 2018 17:22:53 +0000 (17:22 +0000)
committerMatt Morehouse <mascasa@google.com>
Mon, 23 Jul 2018 17:22:53 +0000 (17:22 +0000)
Fix double-free.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337711 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMCodeGenPrepare.cpp

index 39b9813feec95f46bdccaae6a4e8f2899e25399e..83ba345bf252c76957bbdaee6f09505b158272ba 100644 (file)
@@ -98,8 +98,6 @@ public:
 
   ARMCodeGenPrepare() : FunctionPass(ID) {}
 
-  ~ARMCodeGenPrepare() { delete Promoter; }
-
   void getAnalysisUsage(AnalysisUsage &AU) const override {
     AU.addRequired<TargetPassConfig>();
   }