[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.

llvm-svn: 337711

llvm/lib/Target/ARM/ARMCodeGenPrepare.cpp

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